Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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