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
- Download "EmulateNumpad.ahk" script.
- Download and install AutoHotkey program from https://www.autohotkey.com/.
- Open the script with AutoHotkey.
- Turn on the Caps Lock.
- Use
Shift+a designated key to emulate the Numpad function. For example:&(Shift+7) will sendNumpad 7+(Shift+=) will sendNumpad +Ctrl+>(Ctrl+Shift+,) will sendCtrl+Numpad DotAlt+<(Alt+Shift+,) will sendAlt+Numpad Clear
- Turn off the Caps Lock if Numpad is no longer needed.
On this page
Languages
AutoHotkey100.0%
Contributors
Latest Release
v1.0.0July 24, 2025Created July 24, 2025
Updated October 7, 2025