Skip to content

Instantly share code, notes, and snippets.

@RezzedUp
Last active April 16, 2020 06:39
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 RezzedUp/11351d7cde1e7a2471591af303ad9508 to your computer and use it in GitHub Desktop.
Save RezzedUp/11351d7cde1e7a2471591af303ad9508 to your computer and use it in GitHub Desktop.
A fix for (Acer laptop) keyboards with numpads lacking dedicated keys for Home, End, Pg Up, and Pg Dn.
; My Acer laptop doesn't have dedicated keys for 'home', 'end', 'page up', and 'page down'.
; However, it does have a numpad with these keys available as long as num lock is disabled...
; which isn't very ideal. This AutoHotKey script allows me to access the keys listed above on
; my laptop while having the numpad buttons work as usual (with num lock enabled).
; Just hold CTRL+<numpad button> to get the desired key.
#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.
^Numpad7::send {Home}
^Numpad1::send {End}
^Numpad9::send {PgUp}
^Numpad3::send {PgDn}
^Numpad0::send {Ins}
^NumpadDot::send {Del}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment