Page 1 of 1

autoclicker

Posted: 28 Nov 2015, 23:40
by turtle
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

Re: autoclicker  Topic is solved

Posted: 29 Nov 2015, 03:34
by Teemu
Okay I got 2 autoclicker to you, you can maybe try edit them if you want but they are like, you have to first press 1x F8 so it goes on and second time off. I dont know how to do that push-to-activate thing :D

First code

Code: Select all

SetTimer Click, 100

F8::Toggle := !Toggle

Click:
    If (!Toggle)
        Return
    Click
    Send a
return
And the second one here

Code: Select all

F8::
if getkeystate("F8", "T")
settimer, playmygame, 300
else
settimer, playmygame, Off
return

playmygame:
SendInput, {Click} ; send a click.
Return
I do not take credits, I watched help from internet.

Re: autoclicker

Posted: 02 Dec 2015, 11:10
by Shadowpheonix
For one that only works while a button is held, try this (it will send approximately 4 clicks per second)...

Code: Select all

f8::
While GetKeyState("f8","p")
{
	Click
	Sleep 250
}
Return