See Our Top Pick →

How to Assign a Macro to a Second Keyboard or Keypad on Windows

The simplest way to give a spare keypad its own macros is to program its keys to send F13 to F24, then map those keys to text. Windows treats all keyboards as one input, so separating devices needs a device-aware script instead. This page is part of our guide to making a macro that inserts text with one keypress.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20268 min read

A main keyboard and a small keypad sending F13 to F17 keys to a Windows PCQWERTYUASDFGHJMain keyboard: normal typingF13F14F15F16F17Spare keypad: only F13 to F17Windows PCRemap tool turns F13 to F17into saved textMain keyboard keeps typing normally

What Windows can and cannot tell apart

Windows sends every keyboard through one input stream, so apps cannot tell a letter from your main keyboard from the same letter on a spare one. That is why macro tools struggle with device-specific mappings and why PowerToys states they are not supported.

A Microsoft Q&A thread from 2024 captures the problem: a user wanted a second QWERTY keyboard to act as a macro console without changing the first. The answer comes in two shapes. Either the second device sends keys the main one does not, or a driver layer reports which device sent each key.

Pipeline from a keypad key to F14, a remap tool, and text in an appKeypad keysends F14Windowssees F14Remap toolmatches F14Appgets textWindows treats every keyboard as one input; the unique key code does the sorting.
A keypad key sends F14, Windows sees F14, a remap tool matches it and the app gets text.

The F13 to F24 route for any extra keypad

Program the keypad’s keys to send F13 to F24 in its own configuration software, then map those keys to text in PowerToys or AutoHotkey. The mapping belongs to the key, so the main keyboard is untouched and no driver is needed.

  1. Set the keypad keysUse the keypad’s own configuration tool to assign F13, F14 and so on. Programmable keypads running QMK firmware, for example, expose these keycodes.
  2. Check Windows sees themOpen a key tester or a text field in an app that logs key names. Each press should show its own F-key.
  3. Map each key to textIn PowerToys Keyboard Manager, remap a key to send text. Microsoft says F1 to F24 can be remapped.
  4. Test in two programsSoftware varies in how many of F13 to F24 it accepts, so confirm in the apps you use.

Keep the whole keypad on this range. That is the F13 rule: every spare-keypad key sends F13 to F24 and nothing else, so no key can clash with a normal shortcut.

Per-keyboard scripting with AutoHotInterception

AutoHotInterception is an AutoHotkey library that runs code in response to events from a specific keyboard, and can block the key from reaching other apps. It lets one physical key do different jobs on two keyboards.

Two keyboards passing through a device-aware driver layer to a scriptKeyboard AKeyboard BDevice-awaredriver layertells A and B apartScript
Two keyboards pass through a device-aware driver layer before a script handles each key.

The project’s own description says a key on a second keyboard can trigger AutoHotkey code without the application seeing it, and that the same key on several keyboards can do different things. The cost is complexity: you install the Interception driver, find each keyboard’s hardware ID with the project’s monitor script, and write device-specific code.

Warning

Drivers run at a low level. Install this only on a PC you control, from the project’s own repository, and not on a managed work machine without IT approval.

Choosing between the two routes

Pick the F13 route unless the second keyboard is a normal full keyboard that you cannot reprogram. It needs no driver, works in PowerToys or AutoHotkey, and fails in obvious ways. Use device-aware scripting only when keys must stay identical on both devices.

F13 route compared with device-aware scripting
QuestionF13 to F24 routeAutoHotInterception
Needs a programmable keypadYesNo
Needs a driverNoYes, the Interception driver
Works with PowerToys aloneYesNo, it needs AutoHotkey
Same key different action per deviceNoYes
Setup effortAbout 15 minutesAn hour or more
VerdictOur first choiceA specialist tool

Keypad setup checklist

Work through these before you rely on the keypad.

0 of 5 completed

Where Macro Keys fits on a spare keypad

The pages we read do not say whether Macro Keys can assign macros per keyboard, so treat that as unsupported. A keypad that sends a modifier combination may still start a macro through the hotkey launcher; we have not tested that pairing.

A German review of the Macro Keys program says its Hotkey Launcher accepts Alt, Shift or Ctrl with another key. A keypad programmed to send such a combination could trigger it. If you want to ask the developer, the contact page is the route.

Macro Keys Macro Shortcuts tab before any macro is added, with Add Macro button
The empty Macro Shortcuts tab, with Add Macro at the bottom left.

For the other methods, see the methods comparison in the main guide.

Prefer a visual list of triggers?

Macro Keys keeps every trigger and its text in one window and exports them to a file. It is free and runs on Windows.

Common questions on spare keypads

Can Windows tell two keyboards apart?

Not at the level of ordinary apps. Windows merges every keyboard into one input stream, so a letter looks the same whichever device sent it. Tools that need the difference use a driver layer, such as the Interception driver behind AutoHotInterception.

Does PowerToys support different mappings per keyboard?

No. Microsoft’s Keyboard Manager documentation states that per-device mappings are not supported and that mappings apply to all keyboards. Use a keypad that sends distinct keys such as F13 to F24 instead, so the mapping is tied to the key, not the device.

Which keys should a macro pad send?

F13 to F24 are the usual choice. Windows recognises them as valid keys, and almost no program uses them by default. Test each one in the apps you use, because software varies in how many of those keys it accepts. Keep a short list of which key does what.

Is AutoHotInterception safe to install?

It relies on a driver, so treat it like any driver. Download it only from the project’s own repository, install it with administrator rights, and ask IT first on a work PC. Remove it if you stop using it. Keep the install notes somewhere you can find them.

Do I need a second keyboard at all?

Often not. A function-key layer on your main keyboard or a shortcut such as Ctrl+Alt plus a number gives the same effect with no extra hardware. A spare keypad earns its place when you want physical keys dedicated to macros. Many people start without one and add it later.