Skip to content

Instantly share code, notes, and snippets.

@Frequency21
Last active May 1, 2024 08:38
Show Gist options
  • Save Frequency21/72a8e13ead826df466725b5db0fd2435 to your computer and use it in GitHub Desktop.
Save Frequency21/72a8e13ead826df466725b5db0fd2435 to your computer and use it in GitHub Desktop.
Disable numpad alt codes on windows with AutoHotkey
#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.
!NumPadEnd::SendInput , !{End}
!NumPadDown::SendInput , !{Down}
!NumPadPgDn::SendInput , !{PgDn}
!NumPadLeft::SendInput , !{Left}
!NumPadRight::SendInput , !{Right}
!NumPadHome::SendInput , !{Home}
!NumPadUp::SendInput , !{Up}
!NumPadPgUp::SendInput , !{PgUp}
+!NumPadEnd::SendInput , +!{End}
+!NumPadDown::SendInput , +!{Down}
+!NumPadPgDn::SendInput , +!{PgDn}
+!NumPadLeft::SendInput , +!{Left}
+!NumPadRight::SendInput , +!{Right}
+!NumPadHome::SendInput , +!{Home}
+!NumPadUp::SendInput , +!{Up}
+!NumPadPgUp::SendInput , +!{PgUp}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment