I created a simple script to spam only one key in a specific interval, but of course this only works when the window is active, is there a way to continue sending this key when I minimize the window? I read a little about PID and ControlSend() function but couldn't figure it out how to apply on my case.
The game process is always "UOF.exe" if this helps...
Here's my script:
Code: Select all
#NoEnv
#MaxThreadsPerHotkey 2
toggle := 0
z::
Toggle := !Toggle
While Toggle
{
Send, {F1 down}
Sleep, 20
Send, {F1 up}
Sleep, 30
}
return