How to Program a Macro Keyboard on Windows

To program a macro keyboard on Windows, you make each key send a code that nothing else uses, then tell software on the PC what that code should do. This page covers USB macro pads and spare keyboards on Windows 11 and Windows 10. It is part of our guide to keyboard macro software for Windows.

NewSoftwares.net editorial teamPublished: November 2026Last verified: November 20269 min read
Twelve-key macro pad labelled F13 to F24 sending keys to a hotkey tool
Quick answer

Set each key on the keypad to send F13 to F24, or Ctrl+Alt+Shift plus a letter, using the keypad’s own app. Then bind those codes to actions in a Windows tool: Macro Keys’ Hotkey Launcher or PowerToys Keyboard Manager. Windows cannot tell two keyboards apart, so unique codes are what separate the keypad from your main keyboard.

At a glance
Applies toWindows 11 and 10 with a USB macro pad, numpad or programmable keyboard
Time neededAbout 20 minutes for a 12-key pad
DifficultyIntermediate
CostFree software; keypad prices vary by model
Needs admin or internetNo admin for normal apps; internet only to download the keypad’s app
Last verifiedNovember 2026

What a Macro Keyboard Stores and What Windows Software Stores

A macro keyboard stores a key mapping, the code each button sends, while software on the PC stores what that code does. Some keypads also keep short sequences in onboard memory and replay them without any PC software.

Knowing which side holds which job keeps the setup simple. Hardware answers “which code does button 7 send?”. Software answers “what happens when code F19 arrives?”. Keeping both layers separate also means you can swap the keypad later and keep your Windows macros.

Where each kind of keypad keeps its settings
ModelStores on the deviceStores on the PCBest when
Onboard-memory padKey codes and short sequencesNothing required once savedYou move between computers
Software-mapped padUsually key codes onlyActions in a hotkey toolYou want easy edits and backups
Spare normal keyboardNothingNeeds extra software to separate itYou already own one

Choosing Key Codes That Never Collide

Start with F13 to F24. Windows defines them as virtual keys 0x7C to 0x87, few programs claim them, and most keyboards lack physical keys for them, so your keypad owns them alone.

Two rows of function keys, F1 to F12 on keyboards and F13 to F24 free for macros
F13 to F24 give a 12-key pad twelve collision-free codes.

The unused-key rule

Test candidates in this order and stop at the first that works: F13 to F24; then Ctrl+Alt+Shift plus a letter; then never any Win-key combination, since Windows reserves many. PowerToys states that F13 to F24 can be mapped, while the Fn key usually cannot.

Watch out

Some applications that read raw keyboard hardware ignore F13 to F24 as virtual keys. If one app refuses them, switch that key to a Ctrl+Alt+Shift combination.

Programming the Keypad Itself

Open the keypad maker’s app, or a firmware configurator such as VIA on compatible boards, assign one code to each button, and save the layout to the device. Close the app afterward; the keypad keeps the mapping.

  1. Install the keypad’s own app

    Download it from the keypad maker’s site. Some devices are configured in a browser instead.

  2. Assign a code to each button

    Pick F13 for button one, F14 for button two, and so on. Write the list down; you will need it in the next step.

  3. Save to the device

    Choose the option that writes to onboard memory. Settings that stay in the app disappear when it closes.

  4. Press a button in Notepad

    Most Notepad windows show nothing for F13, so use the tool’s own key-capture box, found in the next section, to confirm the code arrives.

Binding Keypad Codes to Actions in Windows

Bind each code in a hotkey tool: Macro Keys’ Hotkey Launcher opens programs, folders, websites and email, while PowerToys Keyboard Manager starts apps or types text from any shortcut, including F13 to F24.

In PowerToys, open Keyboard Manager, choose Remap a shortcut, press the keypad button as the shortcut, and pick Start App, Open URI or Text as the action. You can limit the binding to one program by its process name, such as excel.exe.

With Macro Keys’ Hotkey Launcher, the product page says a combination can launch software, open folders, visit websites or send email. Its documentation does not say whether F13 to F24 are accepted as the combination, so test one before you map all twelve, and fall back to Ctrl+Alt+Shift combinations if needed.

Easy to use feature icon taken from the Macro Keys product page

Testing Every Keypad Button Before You Trust It

Test each button three times: once in Notepad, once in the target application, and once after a restart. A button that passes all three is safe to use during real work.

Keypad test checklist

0 of 5 completed

Why a Spare Keyboard Needs a Different Approach

Windows merges all connected keyboards into a single input stream, and PowerToys documents that per-keyboard mappings are unsupported. A spare keyboard therefore sends the same codes as your main one unless extra software or hardware intervenes.

Community projects, such as shared LuaMacros scripts on GitHub, identify a second keyboard and turn its keys into F13-style codes. They add extra software to the PC, so review the project and your workplace rules first. A dedicated macro pad avoids the whole problem because it sends unique codes from the start.

Tip

A number pad costs little and sends unique keys only if you reprogram it. For beginners a 12-key macro pad is simpler than converting a spare keyboard.

For text-only shortcuts you may not need hardware at all: a typed trigger such as ,addr works from any keyboard. Our comparison of macros, hotkeys and text expanders shows when that is enough, and the hotkey conflict checklist in the main guide catches collisions before they annoy you.

Questions About Programming a Macro Keyboard

Not on its own. Windows merges every connected keyboard into one input stream, and PowerToys documents that per-keyboard mappings are not supported. A macro pad that sends unique codes, such as F13 to F24, gives the system a difference it can see.

Usually not for basic use. Most pads show up as a standard USB keyboard, and the maker’s app only writes the key codes to the device. Check the maker’s page for your model, because advanced features such as lighting may need their own software.

F13 to F24 are the best first choice because Windows defines them as virtual keys and few programs use them. If an application ignores them, use Ctrl+Alt+Shift plus a letter. Avoid Win-key combinations, which Windows reserves for its own commands.

Macro Keys can bind a key combination to a program, folder, website or email through its Hotkey Launcher. NewSoftwares.net does not document F13 to F24 or per-device triggers, so test one key first and use Ctrl+Alt+Shift combinations as a fallback.

Yes if you saved it to the device’s onboard memory, since the mapping lives on the keypad. Software bindings in your hotkey tool do not, so export them first. In Macro Keys that means the Export option in its settings window.

Choosing the Windows Side of Your Keypad Setup

Macro Keys covers the Windows side of a keypad setup for text and app launching, and it is free. It does not record mouse paths, so keep PowerToys or a flow tool nearby for those.

Install Macro Keys, bind one test key, and confirm it works before you map the rest of the pad.