Code: Select all
~lbutton::
While GetKeyState("lbutton","P")
{ ; While it is held down
KeyWait lbutton, T2 ; Wait 2 seconds for user to release key
If ErrorLevel ; Still held down
While GetKeyState("LCtrl","P")
{
send, {lbutton down}
RandSleep(55,85) ;sleep a random length of time
send, {lbutton up}
RandSleep(50,80) ;sleep a random length of time
}
}
return
RandSleep(x,y)
{
Random, rand, %x%, %y%
Sleep %rand%
}