 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Mar 13, 2005 6:45 am Post subject: Getting Control pos |
|
|
is there a way to get a list of all the controls, AND there Position and sizes? _________________ my lame sig  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Sun Mar 13, 2005 4:36 pm Post subject: |
|
|
This should work: | Code: | WinWait, MyWinTitle ; Set the last found window, which should help performance.
WinGet, ControlList, ControlList
Loop, Parse, ControlList, `n
{
ControlGetPos, X, Y, W, H, %A_LoopField%
MsgBox Control #%A_Index% is %A_LoopField% at X%X% Y%Y% W%W% H%H%.
} |
|
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Mar 13, 2005 8:51 pm Post subject: |
|
|
Sorry I didnt see that controlgetpos, otherwise I wouldnt of asked _________________ my lame sig  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|