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/
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