Guide for Windows 10 and 11 · Last verified November 2026
How to Program Macro Buttons on a USB Keypad: Step-by-Step Guide 2026
Macro buttons on a USB keypad can live in three places: the keypad’s own memory, a Windows remapper, or a text and hotkey utility. This guide shows how to pick one, set it up in about ten minutes and test that it worked.
See our top recommendation
The short version
How to Program Macro Buttons on a USB Keypad: Quick Answer
To program macro buttons on a USB keypad, set each button to send an unused key such as F13, then tell Windows what that key should do. A keypad with its own memory takes the assignment in the maker’s app. A plain keypad needs PowerToys, AutoHotkey or Macro Keys to turn the key into an action.
| Applies to | USB keypads and numpads on Windows 10 and Windows 11 |
|---|---|
| Time needed | 10 to 20 minutes for the first button |
| Difficulty | Beginner for launching apps and typing text; intermediate for scripts |
| Cost | Free with built-in Windows features, PowerToys, AutoHotkey or Macro Keys |
| Needs admin rights | Sometimes, for installers and for apps that run elevated |
| Last verified | November 2026 |
A USB keypad with macro buttons is a small keyboard, so Windows sees each press as a normal keystroke. Programming a macro button therefore means two jobs: choose what the button sends, then choose what Windows or an app does when that keystroke arrives.
Plenty of guides stop at the keypad maker’s app. That works until the app is missing, the keypad has no memory, or you move to a work PC. The Three-Layer Rule below decides where each macro should live so it survives those changes.
The Three-Layer Rule for keypad macros
Put each macro in the lowest layer that can do the job. The lower the layer, the further the macro travels with the keypad.
1. Keypad memory
The keypad stores the key combination or text itself. It follows the device to any PC. Limited by the model’s memory and its software.
2. Windows layer
A remapper such as PowerToys or a script turns one key into another key, a shortcut or a program launch. It lives on one PC.
3. App layer
A utility such as Macro Keys expands typed triggers into text and launches programs from hotkeys. It also lives on one PC.

Contents
Before you start
What You Need Before You Program a USB Keypad
Three things decide how you program a keypad: whether it stores macros on board, which Windows version you run, and whether you may install software. Check these first, because they rule out half the methods before you open any app.
keypad types: plain numpad, onboard-memory keypad, QMK or VIA keypad
spare function keys Windows defines but most keyboards lack
minimum Windows 10 version for PowerToys, or any Windows 11
passwords that belong inside a macro
| Keypad type | Where macros live | How you program it | Works on another PC |
|---|---|---|---|
| Plain USB numpad | Nowhere. Each key sends a fixed number or symbol. | Remap the keys in Windows with PowerToys, AutoHotkey or a similar tool. | Only if the remapper runs there too. |
| Programmable keypad with memory | On the keypad, in flash storage. | The maker’s Windows app writes the key combination or text to the device. PI Engineering documents this as hardware-mode macros that play back without software. | Yes, on any system that supports USB. |
| QMK or VIA keypad | On the keypad, in its firmware. | VIA programs macros in a desktop app; QMK keymaps hold up to 32 macros in a keymap.json file. | Yes. |
Microsoft lists Windows 11, or Windows 10 version 2004 (build 19041) and newer on a 64-bit processor, as the requirement for PowerToys. Macro Keys is offered as a Windows download, and its page does not list specific Windows versions, so test it on your build before you rely on it.
You do not need administrator rights to remap keys for your own account in most cases. You do need them when an installer asks, and you need to think about them when the target app runs elevated. The troubleshooting section explains why.
Step by step
Step-by-Step: Program Macro Buttons on a USB Keypad
Six steps cover every keypad: identify the type, list the jobs, choose spare keys, assign them, test in Notepad and test in the real app. The F13 handoff in step three works whether the keypad has memory or not.
Identify what your keypad can store
Look up the model name printed on the base. A maker’s page that mentions onboard memory, profiles or “hardware macros” means layer one is available. A page that lists only a driver or says the keypad “works with the supplied software” usually means the macros live on the PC.
List the buttons and their jobs
Write one line per button: “button 1 opens the invoice folder”, “button 2 types my email signature”. Twelve buttons rarely need twelve different ideas, so group them by app.
Give each button an unused key to send
Assign F13 to F24 to the buttons. Microsoft’s virtual-key table defines these as codes 0x7C to 0x87, and most apps have no shortcut on them, which avoids clashes. This is the F13 handoff: the keypad only announces which button was pressed.
Tell Windows or an app what each key does
Use PowerToys Keyboard Manager to map a key to another key or shortcut, an AutoHotkey script such as
F13::Run "notepad.exe", or the Hotkey Launcher in Macro Keys to open programs, folders and websites.Test in Notepad first
Press each button once in an empty Notepad window. Text macros should type the right text, and key macros should show the expected effect. Fix anything wrong before you test where it matters.
Test in the real app and after a restart
Press each button in the target app, then restart the PC and press again. A macro that works only until you reboot was set up in a program that does not start with Windows.

Free methods
Free Methods to Program Macro Buttons on a USB Keypad
Five free methods cover almost every keypad: the keypad maker’s app, a Windows shortcut key on a desktop shortcut, PowerToys Keyboard Manager, AutoHotkey scripts and Macro Keys. Each one suits a different job, so many setups combine two.
Method 1: The keypad maker’s own software
Plug in the keypad, open the vendor app, pick a button and record or type a combination such as Ctrl+Alt+1. Programmable keypads that keep macros in flash can be moved to other PCs. Difficulty: beginner. Time: about 10 minutes. Limit: you depend on the maker still hosting the software, and some budget keypads cap each key at a short text length.
Method 2: A Windows shortcut key on a desktop shortcut
Right-click a program shortcut, open Properties, click the Shortcut key box and press a key. Windows adds Ctrl+Alt in front of a letter or number. Set the keypad button to send that combination and the button launches the program. Difficulty: beginner. Limit: launching only, and the shortcut must stay where you created it.
Method 3: PowerToys Keyboard Manager
Open PowerToys Settings, choose Keyboard Manager, select Remap a key or Remap a shortcut, and add a mapping. Microsoft documents shortcut remaps that start an app or open a URI, and notes that F13 to F24 can be remapped. Difficulty: beginner. Limit: mappings apply to every keyboard, because Microsoft says it knows of no API that reveals which device a key came from.
Method 4: AutoHotkey scripts
Write a short text file with lines such as F14::SendText "Thanks for your message." and run it with AutoHotkey v2, which is free and open source under the GNU GPLv2. Difficulty: intermediate. Limit: scripts must run as the same privilege level as the target app, and telling two keyboards apart needs an extra component.
Method 5: Macro Keys
Macro Keys expands short typed triggers into longer text, keeps several clipboard entries and launches programs from key combinations. It does not program keypad hardware. Difficulty: beginner. Limit: Windows only, and its page does not describe per-keyboard assignment.
Methods 2 to 5 all react to a keystroke. If the keypad cannot send a unique keystroke per button, none of them can tell the buttons apart.
Side by side
Methods Compared: Keypad Memory, Windows Tools and Free Utilities
The five methods differ most in where the macro is stored and what the tool can do once a key arrives. Keypad memory travels with the device, while every Windows-side tool stays on one PC and can usually act on only one privilege level.
| Method | Difficulty | Exposure of the macro | Cost | Best for | Limitations |
|---|---|---|---|---|---|
| Maker’s keypad software | Easy | Stored on the device, readable by anyone who holds it | Usually free | Keypads with onboard memory | Model specific; vendor may drop support |
| Windows shortcut key | Easy | Stored in the shortcut file | Built in | Launching one program per button | No text or multi-step macros |
| PowerToys Keyboard Manager | Easy | Stored in PowerToys settings | Free | Remapping keys and starting apps | Cannot tell keyboards apart; no sign-in screen |
| AutoHotkey v2 | Medium | Stored in a plain text script | Free, open source | Multi-step logic and per-app hotkeys | Needs matching privilege; extra driver for per-device |
| Macro Keys | Easy | Macros are stored encrypted, per the product page | Free | Text triggers, clipboards, launching apps | Windows only; does not program keypad hardware |
| Our verdict | Medium | Depends on the layer | Free | Combine keypad memory with one Windows tool | Pick by job, not by popularity |
The pattern is simple. Program the keypad to send distinct keys, and pick the Windows-side tool by what each key should do: launch, remap or type.
Know the terms
Macros vs Keyboard Shortcuts vs Text Expansion
A shortcut is one fixed combination, a macro is a stored sequence, and text expansion swaps a short trigger for longer text. Keypad buttons can trigger any of the three, so the choice depends on whether you want keys, words or actions.
Keyboard shortcut
Ctrl+S saves in most apps. The app defines it, and you cannot change what it does without a remapping tool.
Macro
A stored sequence you define: press Tab, type a date, press Enter, wait half a second, repeat.
Text expansion is the narrowest of the three. Typing a short trigger such as ,sig inserts your full signature. That is the core idea behind the Macro Shortcuts tab in Macro Keys, where the Options screen shows a configurable prefix character.
The full comparison, with a decision helper, lives in the macro vs hotkey vs text expander guide.
Two ways to build
Recording vs Scripting Macros
Recording captures what you do once and replays it, while scripting means writing the steps as text. Recording takes two minutes and breaks easily; scripting takes longer to learn and survives changes in window position and timing.

Record when the task is a fixed sequence of keystrokes in a stable window. Script when the task needs a pause, a check of which app is active, or a different action in each app. AutoHotkey’s #HotIf directive lets one key do different things depending on the active window, which a plain recording cannot do.
Mouse recordings are the least reliable kind. If a keyboard route exists for the same action, use it.
Choosing keys
Assigning Macros to Specific Keys
The safest keys for macro buttons are F13 to F24, followed by uncommon chords such as Ctrl+Alt+Shift plus a letter. Letters, Enter, Backspace and the numpad keys you still type with should stay untouched.
Windows treats F13 to F24 as ordinary keys with virtual-key codes 0x7C to 0x87, so tools such as PowerToys and AutoHotkey can listen for them. One caveat: some apps and games do not register the higher ones, so test each in the target app.
Assigning macros to a second keyboard or macro pad
Windows does not label keystrokes by device, and PowerToys states it cannot see which keyboard sent a key. A programmed keypad that sends F13 to F24 sidesteps the problem. The second keyboard guide covers per-device tools and their trade-offs.
What is worth automating
What Keyboard Macros Can Automate
Keyboard macros suit tasks you repeat daily with the same words or keys: canned replies, form fields, file paths, app launches and spreadsheet navigation. A task you do once a week rarely repays the setup time.
Launching apps and websites with one key
A button can open a program, a folder or a web address. Windows does it with a shortcut key, PowerToys with a shortcut remapped to Start App or an address, and Macro Keys with its Hotkey Launcher, which its page says opens software, folders and websites or sends email from a key combination.

Macros for data entry and Excel workflows
Data entry gains most from moving between cells and typing repeated values. A button that sends Tab, a stock phrase and Enter turns a three-step routine into one press. Limit each macro to a single window and keep a short delay between steps so Excel can keep up.

Sample macro library
Copy these into an AutoHotkey v2 script, then change the text. They assume the keypad sends F13, F14 and F15.
F13::Run "notepad.exe"
F14::SendText "Thanks for your message. I will reply within one working day."
#HotIf WinActive("ahk_exe EXCEL.EXE")
F15::Send "{Tab}"
#HotIfFor a Macro Keys text trigger, type a short word with its prefix in the Macro box and the full text in Text to Send. For example, the trigger ,sig can hold your signature block.
Pick for your case
Which Method Fits Your Situation
The right method depends on your keypad and your PC. A programmable keypad on a home PC can use any layer, while a locked-down work PC pushes you toward keypad memory or a tool IT already approved.
Keypad with onboard memory
Use the maker’s app. Macros travel with the device.
Plain USB numpad
Use PowerToys to remap keys, then Macro Keys or AutoHotkey for text and launching.
QMK or VIA keypad
Program macros in VIA, keep a saved layout file, and use F13 to F24 for app actions.
Shared or work PC
Ask IT first. Prefer keypad memory so nothing is installed.
Spreadsheet-heavy job
Script per-app keys with AutoHotkey or program key sequences on the keypad.
Mostly typing text
Use text triggers in Macro Keys and keep the keypad for launching.
Our pick
Where Macro Keys Fits When You Program a USB Keypad
Of the options covered, we recommend Macro Keys for the Windows side of a keypad setup that needs text triggers, a clipboard history or launching apps. We build it, so judge the limits below as carefully as the strengths.
The product page lists macros that replace long text with short triggers, multiple clipboards and a Hotkey Launcher that opens software, folders and websites or sends email from a key combination. It also states that macros are encrypted. The window itself has three tabs: Macro Shortcuts, Multiple Clipboards and Hotkey Launcher.
Honest limits. Macro Keys does not write macros to keypad hardware. It is a Windows download, its page lists no Windows versions, and the page does not describe assigning macros to one keyboard but not another. Pair it with a keypad that sends distinct keys.
Third-party write-ups describe a clipboard history of 100 entries and a trigger prefix; read the German-language review on Datacenter Insider and the Dutch-language ID.nl walkthrough for outside views.

Macro Keys cost and what the free version includes
The official page lists Macro Keys under Free Apps and offers a free download for Windows. It shows no price and no paid tier, so there is nothing to compare or buy. Check the NewSoftwares downloads page for the current listing before you install.
Hands-on
Recording Your First Macro
A first macro in Macro Keys takes four steps: open the Macro Shortcuts tab, press Add Macro, type a trigger and its text, and confirm with Ok. The trigger then expands wherever you type it, including from a keypad button that types the trigger.
Open Macro Shortcuts and choose Add Macro
The tab lists existing macros with the buttons Add Macro, Edit Macro, Delete Macro, Send to Tray and Exit below.
Type the trigger
Use a short word in the Macro (Trigger) box. The Options screen shows a prefix field, so a trigger like
,backupdoes not clash with ordinary words.Enter the text to send
Type or paste the text. The virtual keyboard on the same dialog adds keys such as Tab, Enter, Date and Time to the macro.
Press Ok, then test
Open Notepad and type the trigger. Then program a keypad button to send that trigger, or set a key in the Hotkey Launcher.

Tool by tool
Macro Keys vs PowerToys vs AutoHotkey for Keypad Macros
PowerToys remaps keys and starts apps, AutoHotkey runs scripts, and Macro Keys manages text triggers and clipboards. None replaces the others, and none can tell one keyboard from another without help.
| Feature | Macro Keys | PowerToys Keyboard Manager | AutoHotkey v2 |
|---|---|---|---|
| Price | Free | Free | Free, GNU GPLv2 |
| Text triggers | Yes, with a prefix | Remap to a text sequence | Yes, with SendText or hotstrings |
| Start an app from a key | Hotkey Launcher | Remap a shortcut to Start App | Run command |
| Per-app rules | Not documented | Target app by process name | #HotIf WinActive |
| Tell two keyboards apart | Not documented | No, per Microsoft | Only with an extra driver library |
| Windows requirement | Windows download, versions not listed | Windows 11 or Windows 10 2004 and newer | Windows |
| Fit | Text and clipboards | Key remapping | Logic and scripts |
When it misbehaves
Fixing Macros That Misfire
Most misfiring macros fail for one of four reasons: the key never leaves the keypad, the tool never sees it, the target app is elevated, or the steps run too fast. Check them in that order.
| Problem | Likely cause | Fix |
|---|---|---|
| Nothing happens in any app | The keypad is not sending the key | Press the button in Notepad; test the key in a keyboard tester |
| Works in Notepad, not in the real app | The app runs as administrator | Run the macro tool at the same level, or use UI access for AutoHotkey |
| Only part of the text appears | Steps run faster than the app can accept | Add a short delay between steps |
| Wrong characters | Different keyboard layout or language | Switch input language or use SendText |
| Works until restart | Tool does not start with Windows | Add it to startup or enable its start-with-Windows option |
| Affects the main keyboard too | The remap applies to every keyboard | Use a key the main keyboard lacks, such as F13 |
The full diagnostic order, with the elevated-window explanation, is in the guide to keypad buttons that stop working.

Avoid these
Common Mistakes When You Program Macro Buttons on a USB Keypad
Five mistakes cause most failed keypad setups: reusing common keys, hiding passwords in macros, skipping delays, testing only in Notepad and never exporting a backup. Each one is easy to avoid once you know it.
Do this
Use F13 to F24, test in the real app, add short delays and export your macros.
Not that
Reuse Enter or letters, store a password in a macro, or trust a Notepad-only test.
QMK’s documentation calls storing passwords or card numbers in macros “a supremely bad idea”, because anyone holding the keyboard can read them in a text editor.
Confirm it
How to Verify It Worked After You Program Macro Buttons on a USB Keypad
Verification takes four checks: Notepad, the real app, an unplug and replug, and a restart. A macro that passes all four will behave the same tomorrow.
Notepad
Press each button in an empty document and read what appears.
The real app
Repeat inside the app the macro is for, in the same window state you normally use.
Unplug and replug
Pull the USB cable, reconnect and press again. A macro stored in the keypad survives; one that depends on a missing driver will not.
Restart Windows
Sign in and test without opening any tool by hand.
Add two habits after the setup: export a backup file, and write the button labels on a sticky note or a printed key legend so the mapping outlives your memory of it.
Keep your work
Backing Up and Sharing Your Macros
Back up macros by exporting them to a file and keeping a copy off the PC. Macro Keys exports to a file, VIA has a Save and Load option for keymaps, and AutoHotkey scripts are plain text you can copy anywhere.

Macro files can contain text you would rather not share, so lock them away. A folder locker such as Folder Lock 10 suits a folder of exported macros on a PC, and USB Secure password-protects the flash drive you carry them on.
When you share a macro file with a colleague, remove any personal text first, and tell them which tool and version the file belongs to.
At the office
Safe Macro Use at Work
Work PCs often restrict USB devices and software that sends keystrokes. Ask IT before you plug in a programmable keypad or install a macro tool, and keep credentials out of every macro.

A programmed device can type far faster than a person, and operating systems trust keyboards by default. RedesZone’s Spanish-language article on Rubber Ducky devices explains why security teams watch for them. Your keypad is not an attack tool, but a blocklist cannot tell the difference.
The full checklist on macros at work covers the order to ask in and what to bring.
Straight answers
Straight Answers to Common Searches About Keypad Macros
People phrase the same question in many ways. These answers take the most common phrasings one at a time so you can jump straight to yours.
How do I program macro buttons on a USB keypad from scratch?
Decide where the macro lives, give each button a unique key, then assign an action to each key. Start with one button and test it before you add the rest.
Can you program macro buttons on a USB keypad that has no software?
Yes, in most cases. A plain keypad sends ordinary numpad keys, and PowerToys or AutoHotkey can remap those keys. The catch is that the remap affects every keyboard on that PC.
What is the easiest way to program macro buttons on a USB keypad?
The maker’s own app is easiest when it exists. Without it, a desktop shortcut with a Windows shortcut key launches a program with no install at all.
Is it possible to program macro buttons on a USB keypad for free?
Yes. Windows shortcut keys, PowerToys, AutoHotkey and Macro Keys cost nothing, as do the setup apps most keypad makers publish. Some keypads also need a paid driver, so check the maker’s page first.
What changes for keypad macros in 2026?
Microsoft’s PowerToys documentation lists Windows 11 and Windows 10 2004 or newer as supported, so check your build before you rely on it. Keypad firmware tools such as VIA and QMK keep their own release cycle.
When you finish, add one more habit: review your macros every few months and delete the ones you stopped using.
Common question
Frequently Asked Questions About Programming a USB Keypad
How to program macro buttons on a USB keypad?
Start by checking whether the keypad has its own memory. If it does, use the maker’s software to assign a key combination to each button. If it does not, set each button to send an unused key such as F13, then map that key to an action with PowerToys, AutoHotkey or Macro Keys.
Can I program macro buttons on a USB keypad without paid software?
Yes. Windows can launch a program from a shortcut key, Microsoft PowerToys remaps keys for free, AutoHotkey is free and open source, and Macro Keys is listed as a free app. Keypad makers also supply their own configuration software, usually at no charge.
What is the fastest way to program macro buttons on a USB keypad?
The fastest route is the keypad maker’s own configuration app, because it writes the macro straight to the device. Expect about ten minutes for a first button. If the keypad has no app, a Windows shortcut key on a desktop shortcut is the quickest way to launch a program.
What mistakes should I avoid when I program macro buttons on a USB keypad?
Do not assign macros to keys you already use, such as letters or Enter. Do not store passwords inside a macro. Do not skip a delay between steps when an app is slow to respond, and do not forget to export a copy before you reinstall Windows.
How do I check that it worked after I program macro buttons on a USB keypad?
Open Notepad, press the button, and watch what appears. Then test the same button inside the real app, because an elevated window can ignore input that Notepad accepts. Finally unplug the keypad, plug it back in and press the button again.
What is the difference between a macro and a keyboard shortcut?
A keyboard shortcut is one fixed key combination that an app already understands, such as Ctrl+C. A macro is a stored sequence you define, which can type text, press several keys in order, wait, or open a program. A macro is often triggered by a shortcut.
Can I assign macros to a second keyboard?
Yes, with a catch. Windows treats every keyboard as the same input, so most remapping tools cannot tell a second keyboard apart. Program the keypad to send an unused key like F13, or add a per-device tool such as AutoHotInterception. The second-keyboard guide covers both routes.
Are keyboard macros allowed at work?
Often, but ask before you install anything. Many employers restrict unknown USB devices and software that sends keystrokes, since a programmed device can type far faster than a person. Use tools your IT team already approves, and keep passwords out of every macro.
Will macros work inside every application?
No. Apps running as administrator ignore input from programs that are not elevated, games with anti-cheat may block injected keys, and a few secure screens such as the Windows sign-in screen accept no remapping. Test each macro inside the real app before you rely on it.
How do I back up my macros?
Export them to a file and store a copy somewhere other than the PC. Macro Keys has Import Macros from File and Export Macros to File buttons, VIA has a Save and Load option for keymaps, and AutoHotkey scripts are plain text files you can copy.
Does Macro Keys program the physical buttons on my keypad?
No. The product page describes text macros, multiple clipboards and a hotkey launcher, and says nothing about writing to keypad hardware. Macro Keys reacts to keystrokes after the keypad sends them, so the keypad still needs its own mapping first.
Do macros stay on the keypad when I unplug it?
Only if the keypad stores them in its own memory. A keypad with onboard flash keeps its macros and works on another PC. A keypad that depends on a Windows program loses its behaviour on any computer where that program is not running.
Which keys should I use for keypad macros?
Use F13 to F24 first, since most keyboards lack them and Microsoft’s Keyboard Manager can map them. A rarely used chord such as Ctrl+Alt+Shift plus a letter is the second choice. Avoid letters, Enter and Backspace.
Is Macro Keys free?
Yes. The official page lists Macro Keys under Free Apps with a free download button for Windows. The page shows no paid tier, so this guide treats it as free and links only to that page for the download.
Our verdict
Our Verdict: Program the Keypad, Then Choose the Windows Tool
For most readers, program each button to send F13 to F24, then use one Windows-side tool for the actions. Macro Keys is our pick for text and launching, PowerToys for remapping and AutoHotkey for scripts.
Keypad memory is the strongest layer because the macros travel with the device. When the keypad has none, accept that the macros live on one PC and back them up.
Go deeper
More Guides on Keypad Macros
Keypad buttons not working
The order to check things in when a button does nothing or fires the wrong keys.
Read the guide →Second keyboard as a macro pad
Why Windows cannot tell keyboards apart, and the F13 route that works around it.
Read the guide →Macro vs hotkey vs text expander
A decision helper for choosing between a macro, a hotkey and a text trigger.
Read the guide →Macros at work and IT policy
What to ask IT before you plug in a programmable keypad.
Read the guide →This guide is published by the NewSoftwares.net team, the developer of Macro Keys. It covers free and built-in options alongside our own. Questions can go to the developer through the contact page.