GitHunt
WI

williamsp/EmulateNumpad

AutoHotkey script to emulate a numeric keypad (numpad)

EmulateNumpad

English | Bahasa Indonesia

This AutoHotkey v2 script lets you emulate a numeric keypad (numpad) on smaller keyboards, such as those found on laptops, that lack these keys.

Background

Multimedia players and 3D programs usually use numpad shortcuts to move, resize, and rotate an object, such as:

Shortcut key Function
Numpad 4 and 6 Decrease/increase width
Numpad 2 and 8 Decrease/increase height
Numpad 1 and 9 Decrease/increase size (maintain ratio)
Numpad 5 Reset size
Ctrl+Numpad 4 and 6 Move horizontally (left/right)
Ctrl+Numpad 2 and 8 Move vertically (down/up)
Ctrl+Numpad 1,3,7,9 Move diagonally
Ctrl+Numpad 5 Reset position
Alt+Numpad 4 and 6 Flip horizontally (rotate Y axis)
Alt+Numpad 2 and 8 Flip vertically (rotate X axis)
Alt+Numpad 1 and 3 Rotate CCW/CW (rotate Z axis)

If our computer lacks those keys, we must access these functions through the menu instead, which slows down our work. I also tried several similar programs out there, unfortunately they can only press the Numpad button, it cannot be combined with Ctrl or Alt. Hence, I created this script.

Key mapping

Make sure the Caps Lock is on, then use Shift to modify the key.

7
Numpad 7
8
Numpad 8
9
Numpad 9
-
Numpad - (Sub)
=
Numpad + (Add)
U
Numpad 4
I
Numpad 5
O
Numpad 6
[
Numpad / (Div)
]
Numpad * (Mult)
J
Numpad 1
K
Numpad 2
L
Numpad 3
'
Numpad Enter
M
Numpad 0
,
C (Clear)
.
. (Dot)

How to use

Run "EmulateNumpad.exe" on Windows.

or

  1. Download "EmulateNumpad.ahk" script.
  2. Download and install AutoHotkey program from https://www.autohotkey.com/.
  3. Open the script with AutoHotkey.
  4. Turn on the Caps Lock.
  5. Use Shift+a designated key to emulate the Numpad function. For example:
    • & (Shift+7) will send Numpad 7
    • + (Shift+=) will send Numpad +
    • Ctrl+> (Ctrl+Shift+,) will send Ctrl+Numpad Dot
    • Alt+< (Alt+Shift+,) will send Alt+Numpad Clear
  6. Turn off the Caps Lock if Numpad is no longer needed.

Languages

AutoHotkey100.0%

Contributors

Latest Release

v1.0.0July 24, 2025
Created July 24, 2025
Updated October 7, 2025
williamsp/EmulateNumpad | GitHunt