Created
January 5, 2022 03:20
-
-
Save abix-/d4f78768a315e6e21f33325e17346595 to your computer and use it in GitHub Desktop.
moe 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; https://www.autohotkey.com/docs/Hotkeys.htm | |
; ^ = Control | |
; * = Wildcard: Fire the hotkey even if extra modifiers are being held down | |
; ~ = When the hotkey fires, its key's native function will not be blocked (hidden from the system) | |
; Click positions assume 1920x1080 resolution | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
#MaxThreadsPerHotkey 2 | |
SetDefaultMouseSpeed 0 | |
; Repeat left click | |
; Ctrl + F1 | |
*^F1:: | |
F1Toggle := !F1Toggle | |
If(F1Toggle) { | |
gosub Click | |
SetTimer,Click,50,On | |
} else { | |
SetTimer,Click,off | |
} | |
return | |
Click: | |
Click | |
return | |
; Repeat right click | |
; Ctrl + F2 | |
*^F2:: | |
F2Toggle := !F2Toggle | |
If(F2Toggle) { | |
gosub RightClick | |
SetTimer,RightClick,50,On | |
} else { | |
SetTimer,RightClick,off | |
} | |
return | |
RightClick: | |
Click, right | |
return | |
; Repeat e | |
; F3 | |
*^F3:: | |
F3Toggle := !F3Toggle | |
If(F3Toggle) { | |
gosub SendE | |
SetTimer,SendE,200,On | |
} else { | |
SetTimer,SendE,off | |
} | |
return | |
SendE: | |
send,e | |
return | |
; Disable everything when press s | |
~s:: | |
F1Toggle := 0 | |
F2Toggle := 0 | |
F3Toggle := 0 | |
SetTimer, Click,off | |
SetTimer, RightClick,off | |
SetTimer, SendE,off | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment