autoclicker
Posted: 28 Nov 2015, 23:40
Hi, I would like an autoclicker that toggles when a button is held, and stops when it isn't. I'm really bad with this kind of stuff. Thanks
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=18&t=10819
Code: Select all
SetTimer Click, 100
F8::Toggle := !Toggle
Click:
If (!Toggle)
Return
Click
Send a
return
Code: Select all
F8::
if getkeystate("F8", "T")
settimer, playmygame, 300
else
settimer, playmygame, Off
return
playmygame:
SendInput, {Click} ; send a click.
Return
Code: Select all
f8::
While GetKeyState("f8","p")
{
Click
Sleep 250
}
Return