Created
August 19, 2021 20:53
-
-
Save versedi/c81c29ee96a8fa3dd39beeb17edaa737 to your computer and use it in GitHub Desktop.
Numpad autocast with autohotkey
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
;The key (or mouse button) you press to activate the script. For a list of supported "keys" and combinations, see https://autohotkey.com/docs/Hotkeys.htm | |
;XButton1 = "Back"-Button on my mouse. For a complete list of special keys, see https://autohotkey.com/docs/KeyList.htm | |
#IfWinActive Last Epoch | |
#SingleInstance force | |
#NoEnv | |
#Warn | |
#Persistent | |
#MaxThreadsPerHotkey 2 | |
SetTitleMatchMode 3 | |
SendMode Input | |
CoordMode, Mouse, Client | |
Thread, interrupt, 0 | |
SetKeyDelay,0 ; | |
SetBatchlines,-1 | |
PgUp:: | |
SetNumLockState, On | |
Send {Numpad1 Down} | |
Send {Numpad2 Down} | |
Send {Numpad3 Down} | |
SetNumLockState, Off | |
KeyWait, PgUp | |
return | |
PgDn:: | |
SetNumLockState, On | |
Send {Numpad1 Up} | |
Send {Numpad2 Up} | |
Send {Numpad3 Up} | |
KeyWait, PgDn | |
return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment