The Script below constantly smash Key 2,3 and 4, but only if i dont hold the Left Mouse Button. I would like to add another Button to this.
So Result should be: if i hold Left Mouse OR Key 1 wait otherwise do the loop.
Code: Select all
F11::
$stop := 0
Loop,
{
if(GetKeyState("LButton","P"))
{
KeyWait, LButton, U
}
else
freq:=100
Send 2
Sleep %freq%
Send 3
Sleep %freq%
Send 4
Sleep %freq%
if ($stop)
{
return
}
}
F12:: $stop := 1