Help with an auto-clicker

Ask gaming related questions (AHK v1.1 and older)
NekoAlosama
Posts: 3
Joined: 21 Oct 2017, 09:30

Help with an auto-clicker

05 Nov 2017, 18:24

I am trying to make a very fast auto-clicker script for a small game. So far, I've made a script that clicks 400-500 CPS. Is there any way to make this faster?

It's my first time making a post, so you can correct me when needed.

Code: Select all

#NoEnv
#Persistent
#KeyHistory 0
#InstallKeybdHook
#SingleInstance Force
#MaxHotkeysPerInterval 9999
ListLines Off
SendMode Input
SetBatchLines -1
SetMouseDelay -1
SetKeyDelay -1, -1
Process, Priority, , H
SetWorkingDir %A_ScriptDir%

\::
while (GetKeyState("\", P)) {
DllCall("mouse_event", UInt, 2)
DllCall("Sleep", UInt, 1)
DllCall("mouse_event", UInt, 4)
DllCall("Sleep", UInt, 0)
} Return

|::
Reload
Pause
return
EDITS:
> Drastically reduced size of script by removing useless directives.
GreatGazoo
Posts: 69
Joined: 28 Dec 2017, 02:53

Re: Help with an auto-clicker

16 Jan 2018, 12:40

i think sleep 1 should send 1000 clicks per second, never tried it though, not sure how to test, most places max out at 1260 clicks per minute

https://www.kongregate.com/games/wolfup ... -you-click

http://www.urban75.com/Mag/java7.html

Code: Select all

$~Mbutton::
	while (getKeyState("Mbutton", "P"))
	{
		send, {lbutton}
		sleep, 1
	}
return
mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Help with an auto-clicker

17 Jan 2018, 06:42

mast4rwang wrote:Most likely the fastest clicker possible. Last time I checked it is twice as fast as normal send,{click} command. You might want to add some sleep command to make it slower because game wont detect such fast clicks xD
,,

Code: Select all

*TAB::
bl=0
loop,
{
if bl=1
break
DllCall("mouse_event", "UInt", 0x02) ; left button down
DllCall("mouse_event", "UInt", 0x04) ; left button up
}
return
*TAB Up::
bl=1
return
btw dllcall sleep will tear your CPU apart, I'd suggest searching for an alternative ;d
NekoAlosama
Posts: 3
Joined: 21 Oct 2017, 09:30

Re: Help with an auto-clicker

03 Feb 2018, 17:08

mast4rwang wrote:
mast4rwang wrote:Most likely the fastest clicker possible. Last time I checked it is twice as fast as normal send,{click} command. You might want to add some sleep command to make it slower because game wont detect such fast clicks xD
,,

Code: Select all

*TAB::
bl=0
loop,
{
if bl=1
break
DllCall("mouse_event", "UInt", 0x02) ; left button down
DllCall("mouse_event", "UInt", 0x04) ; left button up
}
return
*TAB Up::
bl=1
return
btw dllcall sleep will tear your CPU apart, I'd suggest searching for an alternative ;d
I don't think this really helps me, because this script essentially removes the DllCall statements. Also, DllCall Sleep uses less CPU than my touchpad xD.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: ReyAHK and 82 guests