Need help with togglable autoclicker, with random variation Topic is solved

Ask gaming related questions
widefoghornleghorn
Posts: 2
Joined: 20 Jan 2021, 19:38

Need help with togglable autoclicker, with random variation

Post by widefoghornleghorn » 20 Jan 2021, 19:47

Hiya,

I have this code here

Code: Select all

#MaxThreadsPerHotkey 3

`::
Toggle := !Toggle
Loop
{
	If (!Toggle)
		Break
	Click
	Sleep 57
}
Return
which is cool, but I want to add a random delay between clicks as to avoid basic autoclicker detection. I'm kind of useless when it comes to scripting and this will probably be the only thing I use this program for, so I'd appreciate any help.
Thanks,

- fog
User avatar
mikeyww
Posts: 6481
Joined: 09 Sep 2014, 18:38

Re: Need help with togglable autoclicker, with random variation  Topic is solved

Post by mikeyww » 20 Jan 2021, 21:04

Code: Select all

#MaxThreadsPerHotkey 3
`::
on := !on
While on {
 Click
 Random, rand, 25, 150
 Sleep, rand
}
Return
Post Reply

Return to “Gaming”