Help ahk help, sending keys to multiple windows

Status
Not open for further replies.

hasin1

Active member
Joined
Jan 22, 2014
Messages
55
Reaction score
0
I need some help with this ahk script, it is supposed to send F12 key to 2 gta windows but at the moment it only sends t/wave to both gta windows.

It wont send the press F12 key unless I click one gta window, and then it will only send the f12 key to the window i have clicked.

I am using bartekdvd's GTA:SA Multiprocess if it helps, http://ugbase.eu/releases-52/gtasa-multiprocess/


Code:
~O::
Settimer, Sellcar, 4000
Return


~P::
Settimer, Sellcar, Off
Return


Sellcar:

WinGet, gtaid, List, GTA:SA:MP 

Setkeydelay,100

ControlSend,, {F12 down}, ahk_id %gtaid1%
sleep, 1000 ;


ControlSend,, {F12 up}, ahk_id %gtaid1%
sleep, 1000 ;


ControlSend,, {F12 down}, ahk_id %gtaid2%
sleep, 1000 ;


ControlSend,, {F12 up}, ahk_id %gtaid2%
sleep, 1000 ;


ControlSend,, t/wave{enter}, ahk_id %gtaid1%
sleep, 1000 ;

ControlSend,, t/wave{enter}, ahk_id %gtaid2%
Return
 
Status
Not open for further replies.
Top