Skip to content

Instantly share code, notes, and snippets.

@versedi
Created August 19, 2021 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save versedi/c81c29ee96a8fa3dd39beeb17edaa737 to your computer and use it in GitHub Desktop.
Save versedi/c81c29ee96a8fa3dd39beeb17edaa737 to your computer and use it in GitHub Desktop.
Numpad autocast with autohotkey
;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