Sign in to follow this  
Followers 0
Immensee

getting simple GUI Coordinates

5 posts in this topic

Hello,

i've been searching for a damn hour of something so simple, but can't find it anywhere. :P

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

Share this post


Link to post
Share on other sites



try "WinGetPos"

Share this post


Link to post
Share on other sites

Hello,

i've been searching for a damn hour of something so simple, but can't find it anywhere. :P

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

cordinates of gui

example:

$gui = GuiCreate("MyWindow", 800, 300)

$pos = WinGetPos("$gui")

Edited by oMBra

Share this post


Link to post
Share on other sites

Hell, that wingetpos command did the trick, thanks guys for quick responds.

Im alot happier now :P

@Andreik coordinates of whole GUI

my problem is solved now,

thank you

immense

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0