Skip to content

Instantly share code, notes, and snippets.

@ivan
Last active May 29, 2026 15:29
Show Gist options
  • Select an option

  • Save ivan/7d15b155b945021b503121bbda83a500 to your computer and use it in GitHub Desktop.

Select an option

Save ivan/7d15b155b945021b503121bbda83a500 to your computer and use it in GitHub Desktop.
AutoHotkey to remap a laptop numpad to three identical columns of Home/PgUp/PgDn/End keys
#persistent
#singleinstance Force
; The idea here is to remap the left edge of the numpad
; to a single column of Home/PgUp/PgDn/End keys.
Numlock::Home
NumpadHome::PgUp
NumpadLeft::PgDn
NumpadEnd::End
; Another duplicated column next to it
NumpadDiv::Home
NumpadUp::PgUp
; vk0C = Numpad5 when not in Numlock mode
vk0C::PgDn
NumpadDown::End
; The last duplicated column
NumpadMult::Home
NumpadPgUp::PgUp
NumpadRight::PgDn
NumpadPgDn::End
@ivan

ivan commented May 29, 2026

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment