| View previous topic :: View next topic |
| Author |
Message |
Jer217 Guest
|
Posted: Thu Nov 12, 2009 12:50 pm Post subject: Controls/multiple instances |
|
|
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
|
Posted: Thu Nov 12, 2009 1:48 pm Post subject: |
|
|
Find the Unique id (PID) of each window.
WinGet
Then use the PID in your controlsend command. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 1994 Location: GERMANY
|
Posted: Thu Nov 12, 2009 2:06 pm Post subject: |
|
|
@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) |
|
| Back to top |
|
 |
|