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 

How to get a list of window handles

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



Joined: 01 Jun 2006
Posts: 14

PostPosted: Mon Sep 04, 2006 3:25 am    Post subject: How to get a list of window handles Reply with quote

My question is how to get the window handle values using WinGet:

Code:

SetTitleMatchMode, 1
WinGet, handles, list, Notepad
Loop, %handles%
{
    Msgbox, handle%A_Index%
}


It only displays 'handle1', 'handle2', etc. I want to display the window handle value. Thanks.
Back to top
View user's profile Send private message
jballi



Joined: 01 Oct 2005
Posts: 384
Location: Texas, USA

PostPosted: Mon Sep 04, 2006 5:33 am    Post subject: Reply with quote

Minor tweaks...

Code:
SetTitleMatchMode,2
WinGet, handles, list, Notepad
Loop, %handles%
{
    Msgbox, % handles%A_Index%
}
Back to top
View user's profile Send private message Send e-mail
muse



Joined: 01 Jun 2006
Posts: 14

PostPosted: Tue Sep 05, 2006 3:09 am    Post subject: Reply with quote

Thanks, now it works.
Back to top
View user's profile Send private message
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