I got a code that press SPACE every 10 sec in a loop till I stop it, now I can't use my PC while the script is running cuz I use Send, I tried to change it to PostMessage but no use, what should I use then?, I will post the code below thanks for the help
Code: Select all
WinActivate, Rainbow Six
SendMode Event
Loop
{
DllCall("mouse_event", uint, 1, int, 0, int, 10000, uint, 0, int, 0)
; all timings are in ms, so 1000 = 1 second
Send {3 down}
Sleep 200 ; don't touch these little 200 ms pauses, they are for improved keypress detection
Send {3 up}
Sleep 1000 ; this is how long the script will wait before detonating the nitro cell after throwing it, change it if you use speedhack
Send {3 down}
Sleep 200
Send {3 up}
Sleep 1250
Send {Esc}
Sleep 1500 ; this is how long the script will wait after you blow up the hostage before launching the next round, change if you use speedhack
SendInput {Space down}
Sleep 200
SendInput {Space up}
Sleep 5000 ; this is how long the script will wait for your game to load, increase it if your PC can't load the game in time
}
$+1::ExitApp ;Shift+1 will exit the script