Windows does not provide a general built-in keyboard recorder for this; use your keyboard or mouse manufacturer’s macro software, or—if you have Microsoft adaptive accessories—record and assign the sequence in Microsoft Accessory Center.
Microsoft adaptive accessories
- Install and open Microsoft Accessory Center.
- Select the profile for the accessory.
- Select the button that should play the sequence, then choose Macro.
- Select Record action → Start.
- Enter the required keystrokes and mouse clicks.
- Select Stop.
- Save the profile, then press the assigned button to play the entire sequence.
The recorded macro can include keyboard input, mouse input, pauses, and delays.^1^
Other keyboards or mice
Check the device manufacturer’s configuration application for a Macro, Record, or Key Assignment page. A macro-capable device commonly lets you:
- Choose an unused key or programmable button.
- start recording;
- enter the sequence;
- stop recording; and
- assign the recording to that key.
Microsoft’s older IntelliPoint implementation follows this model: select a reassignable button, choose Macro, record the keystrokes/clicks/delays, save it, and press that button to play it. That procedure applies only to compatible hardware and software; it is not a universal Windows feature.^2^
Do not record passwords or other sensitive information in a macro.
PowerToys limitation
PowerToys Keyboard Manager does not record an arbitrary series of live keystrokes. It can map one key to:
- another key;
- a keyboard shortcut; or
- a fixed Unicode text string.
For a fixed text sequence:
- Open PowerToys Settings → Keyboard Manager.
- Select Remap a key → Add key remapping.
- Under Select, choose the trigger key.
- Under To send, choose Text and enter the text.
- Save the mapping and leave PowerToys running in the background.^3^
If the sequence contains navigation, function keys, application commands, or timed delays, use macro-capable device software or a third-party macro utility such as AutoHotkey instead; PowerToys remapping is not a substitute for a true recorded macro.^4^
References