Immensee Posted August 11, 2008 Share Posted August 11, 2008 Hello, i've been searching for a damn hour of something so simple, but can't find it anywhere. I want to get the X/Y Coordinates of my GUI! That's all :/ Now i've been looking for a while in the search box in the forums, it only tells me about ControlGetPos. This command isn't well described in the autoit help file. I've been trying to write the following: $pos2 = ControlGetPos($title&" --- "&$VERSION, "Adressen", "SysTabControl32") msgbox(0,"",$pos2) ; should result in : giving the X/Y coordinates, but instead it gives crashes any help? Immense Link to comment Share on other sites More sharing options...
oMBRa Posted August 11, 2008 Share Posted August 11, 2008 try "WinGetPos" Link to comment Share on other sites More sharing options...
Andreik Posted August 11, 2008 Share Posted August 11, 2008 Hello, i've been searching for a damn hour of something so simple, but can't find it anywhere. I want to get the X/Y Coordinates of my GUI! That's all :/ Now i've been looking for a while in the search box in the forums, it only tells me about ControlGetPos. This command isn't well described in the autoit help file. I've been trying to write the following: $pos2 = ControlGetPos($title&" --- "&$VERSION, "Adressen", "SysTabControl32") msgbox(0,"",$pos2) ; should result in : giving the X/Y coordinates, but instead it gives crashes any help? Immense Coordinates of GUI or some GUI control? When the words fail... music speaks. Link to comment Share on other sites More sharing options...
oMBRa Posted August 11, 2008 Share Posted August 11, 2008 (edited) cordinates of gui example: $gui = GuiCreate("MyWindow", 800, 300) $pos = WinGetPos("$gui") Edited August 11, 2008 by oMBra Link to comment Share on other sites More sharing options...
Immensee Posted August 11, 2008 Author Share Posted August 11, 2008 Hell, that wingetpos command did the trick, thanks guys for quick responds. Im alot happier now @Andreik coordinates of whole GUI my problem is solved now, thank you immense Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now