Variable Auto Clicker

Ask gaming related questions
lostatlife
Posts: 1
Joined: 19 Apr 2024, 11:39

Variable Auto Clicker

21 Apr 2024, 01:44

Hi so I've been diligently working at this autoclicker, which has been difficult for me to figure out

Rules:

Mouse will stay in same spot
Mouse will click at a variable speed (it's an auto-clicker), but let's say we want it to click anywhere between 1 and 20000 milliseconds (it can do that and it will be random every time)
User avatar
mikeyww
Posts: 27132
Joined: 09 Sep 2014, 18:38

Re: Variable Auto Clicker

21 Apr 2024, 05:55

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
on := False

F3:: {
 Global on
 If on ^= True
  clik(), SoundBeep(1500)
 Else SetTimer(clik, 0), SoundBeep(1000)
}

clik() {
 Click
 If on
  SetTimer clik, Random(1, 20000)
}

Return to “Gaming”

Who is online

Users browsing this forum: changlish76 and 9 guests