I need a Randomized AC Topic is solved

Ask gaming related questions
CR3ALITY
Posts: 21
Joined: 08 Nov 2020, 18:37

I need a Randomized AC

Post by CR3ALITY » 24 Jan 2021, 20:03

I need a Randomized auto clicker that clicks between 10-20cps (Approx.)
toggled on/off using R
If possible, It can be switched to right clicking by pressing ( ` )
Can anyone help?
User avatar
Spawnova
Posts: 456
Joined: 08 Jul 2015, 00:12
Contact:

Re: I need a Randomized AC  Topic is solved

Post by Spawnova » 24 Jan 2021, 23:59

Code: Select all

#if toggle   ;these hotkeys are only active if toggle = 1
~*esc::      ;remove the ~ from these hotkeys if you want to block the original function
~*t::
~*e::
~*enter::
toggle := 0
settimer,clicker,off
return
#if  ;all hotkeys below are  active regardless

*r::
toggle := !toggle ;toggles clicking on and off
rclick := 0 ;do not perform right clicks
settimer,clicker,% (toggle ? 10 : "off") ;set a timer on if toggled of off if not
return

*`::rclick := !rclick  ;change from left clicks to right clicks, or back to left


clicker:
if (nextClick < a_tickcount) {
	click % (rclick ? "right" : "left") ;click either left or right
	nextClick := a_tickcount + random(50,100) ;the next click will happen between 50-100ms after this
}
return

Random(min,max:=100) {
	random,r,% min,% max
	return r
}

f8::exitapp  ;remove these if you don't need them
f9::reload
Last edited by Spawnova on 25 Jan 2021, 03:44, edited 1 time in total.
Some of my AHK programs: 3D Voxel Game - Platformer Game - Langton's Ant - Raycast light/Pixel Water - Creating HD map of any game
Or check out my Youtube for these plus many more projects! :D
CR3ALITY
Posts: 21
Joined: 08 Nov 2020, 18:37

Re: I need a Randomized AC

Post by CR3ALITY » 25 Jan 2021, 03:23

It works perfectly. I want it to be toggled off when I press Esc, T, E, or Enter. How can I add it to this code?
User avatar
Spawnova
Posts: 456
Joined: 08 Jul 2015, 00:12
Contact:

Re: I need a Randomized AC

Post by Spawnova » 25 Jan 2021, 03:45

I've updated my earlier post with a new script which can do that.

I've added hotkeys with a ~ symbol which means when you press the hotkeys the original function of that key is NOT blocked, if you do not want this then delete the ~ from the hotkeys
Some of my AHK programs: 3D Voxel Game - Platformer Game - Langton's Ant - Raycast light/Pixel Water - Creating HD map of any game
Or check out my Youtube for these plus many more projects! :D
CR3ALITY
Posts: 21
Joined: 08 Nov 2020, 18:37

Re: I need a Randomized AC

Post by CR3ALITY » 25 Jan 2021, 04:06

Thank you for helping me out, I truly appreciate the help :D
Post Reply

Return to “Gaming”