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 

Controls/multiple instances

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





PostPosted: Thu Nov 12, 2009 12:50 pm    Post subject: Controls/multiple instances Reply with quote

say I have two windows with the same title - how can I make controlsend etc differentiate between the two?
Thanks
Back to top
doyle



Joined: 14 Nov 2007
Posts: 279
Location: London, England

PostPosted: Thu Nov 12, 2009 1:48 pm    Post subject: Reply with quote

Find the Unique id (PID) of each window.

WinGet

Then use the PID in your controlsend command.
Back to top
View user's profile Send private message Visit poster's website
HotKeyIt



Joined: 18 Jun 2008
Posts: 1994
Location: GERMANY

PostPosted: Thu Nov 12, 2009 2:06 pm    Post subject: Reply with quote

@doyle, you surely mean hWnd (window handle), not PID (process identifier).
Code:
WinGet,List,List,Title of Your Window
Loop % list
 MsgBox % list%A_Index%

_________________
AutoHotFile - ToolTip(n,text,title,options) Wink
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