AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting Control pos

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Mar 13, 2005 6:45 am    Post subject: Getting Control pos Reply with quote

is there a way to get a list of all the controls, AND there Position and sizes?
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sun Mar 13, 2005 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Mar 13, 2005 8:51 pm    Post subject: Reply with quote

Sorry I didnt see that controlgetpos, otherwise I wouldnt of asked
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group