controlID problem

12/05/2012 17:39 schmuselord1#1
hiho, im trying to create a multiboxing script which simultaneously sends keys to all clients. but i got trouble finding out the controlid for all of the clients. the title and text are the same, so i cant use the proper controlsend. does anyone have an idea how to get the controlID of my clients or how to initialize the clients with some other technique?

thanks in advance
12/05/2012 23:07 .AppleTree.#2
Check those functions:
Quote:
_WinAPI_GetForegroundWindow()
_WinAPI_GetWindow($hWnd, $iCmd)

WinGetHandle ( "title" [, "text"] )
WinSetTitle ( "title", "text", "newtitle" )
I don't know how the exact situation is but i guess you could open the clients after each other and use WinSetTitle between opening them.

Maybe you could also use _WinAPI_GetForegroundWindow() and just switch from window to window.

Greez AppleTree
12/06/2012 23:55 schmuselord1#3
Quote:
Originally Posted by .AppleTree. View Post
Check those functions:


I don't know how the exact situation is but i guess you could open the clients after each other and use WinSetTitle between opening them.

Maybe you could also use _WinAPI_GetForegroundWindow() and just switch from window to window.

Greez AppleTree
i already solved this by using WinSetTitle. but thanks anyway