Jump to content

Recommended Posts

Posted

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

Posted

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?
Posted (edited)

cordinates of gui

example:

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

$pos = WinGetPos("$gui")

Edited by oMBra
Posted

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

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
×
×
  • Create New...