Skip to content

Instantly share code, notes, and snippets.

@mattearly
Created January 6, 2017 16:31
Show Gist options
  • Save mattearly/9fcaa172d54e212d8c6c1907d95949d6 to your computer and use it in GitHub Desktop.
Save mattearly/9fcaa172d54e212d8c6c1907d95949d6 to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
!LButton::
MouseClick, Left,X,Y,20,1,
return
mega_click = y
^!RButton::
if mega_click = y
mega_click = n
return
^!LButton::
mega_click = y
Loop, 360 {
if mega_click = n
return
MouseClick, Left,X,Y,1,1
Sleep 625
}
return
@mattearly
Copy link
Author

mattearly commented Jan 6, 2017

When running this autohotkey script,

!LButton::
    MouseClick, Left,X,Y,20,1,
return

Alt+LeftClick spams 20 clicks in an instant.

mega_click = y

^!RButton::
    	if mega_click = y
    		mega_click = n
return

^!LButton::
	mega_click = y
	Loop, 360 {
		if mega_click = n
			return
		MouseClick, Left,X,Y,1,1
		Sleep 625
	}
return

Shift+Alt+RightClick begins clicking left click about once every .625 seconds for somewhere around 5 minutes. It can be toggled off sooner by pressing the hotkey Shift+Alt+RightClick again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment