Specificly made Auto clicker script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Xantis52
Posts: 1
Joined: 24 Sep 2018, 18:58

Specificly made Auto clicker script

24 Sep 2018, 19:07

So I've been looking around for a bit and I've found several autoclicker scripts, but is it possible to make a script where I could press mouse button 4 (XButton1) and then I could hold down either right or left click for it to spam, then when I press button 4 again, LMB and RMB revert to normal? If this is not possible, then simply a way to toggle a script on command of mouse button 4 would be fine. Thanks!
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Specificly made Auto clicker script

24 Sep 2018, 21:48

Example:

Code: Select all

XButton1::spam := (toggle:=!toggle) ? true : false

#If (Spam = true)

LButton::
RButton::
    while GetKeyState(A_ThisHotkey,"P")
        Send % "{" A_ThisHotkey "}"
return

#If

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 215 guests