Updated 3 times. Last updated on See all updates
Windows 11 ships with the Power Automate for desktop app preinstalled, and its recorder captures mouse and keyboard functions alongside a catalog of hundreds of prebuilt actions. Steps Recorder records screenshots of the desktop along with descriptive, annotated steps, and a deprecation banner arrived in it with the Windows 11 update in February 2024. Screenshots document a task without replaying it, so to record keyboard macros Windows can play back, start with the methods below.

On Windows, the word macro covers three separate jobs: recording live input and playing it back, mapping one key to a block of text, and scripting a hotkey. Pick the job first, then follow the matching steps below. Each method’s limits come from its developer’s own documentation, so you know what a recording will miss before you spend time building it.
Key Takeaways
- Steps Recorder has carried a deprecation banner since the Windows 11 update in February 2024, while the preinstalled Power Automate for desktop app is the recorder that captures mouse and keyboard functions.
- PowerToys Keyboard Manager can exchange a key or shortcut for a text sequence, but shortcuts can’t exceed 4 keys in length, or 5 if the shortcut is a chord.
- In Microsoft Mouse and Keyboard Center, Split turns one event into 3 separate events: a button press-and-hold, a time delay and a button release.
- AutoHotkey published v2.0.30 on 2026-10-09, and the scripting language is free and open-source under the GNU GPLv2.
- Pulover’s Macro Creator lists v5.4.1 as its latest release, with setup files dated 2021-09-24.
Which Windows macro method fits your task?
The 6 methods below split into three jobs: recording live input, mapping a key to text, and scripting a hotkey. On Windows 11, anyone can build flows with little-to-no coding experience in the preinstalled Power Automate for desktop app.
PowerToys Keyboard Manager takes a different route and exchanges a key or shortcut for an arbitrary unicode text sequence. Power Automate, by contrast, records your activity and automatically converts the steps into actions.
| Method | How you build the macro | Where it works | Fits this job |
|---|---|---|---|
| Power Automate for desktop | Record mouse and keyboard actions | Desktop and web applications | Multi-step tasks across apps |
| PowerToys Keyboard Manager | Map a key or shortcut to text or another shortcut | All of Windows or specific apps | Typing a fixed phrase from one key |
| Microsoft Mouse and Keyboard Center | Record keystrokes, mouse clicks and delays | A key or button on a Microsoft keyboard or mouse | Repeating a sequence from one button |
| Word and Excel macro recorder | Record clicks and keystrokes in the app | Inside Word or Excel | Document and spreadsheet chores |
| AutoHotkey v2 | Write a hotkey script | Any desktop task | Custom hotkeys and text replacement |
| Razer Synapse 4 | Record keystrokes or mouse functions | Razer Synapse-enabled products | Macros on Razer hardware |
Source: Microsoft Learn, Microsoft Support, AutoHotkey, Razer Support
Start with the first row if you are unsure; it records mouse and keyboard actions in both desktop and web applications. The other rows suit narrower needs: one-key text (PowerToys), hardware buttons (Mouse and Keyboard Center, Synapse) or full control (AutoHotkey).
Step 1: Record a Macro With Power Automate for Desktop
Power Automate records a desktop flow by tracking mouse and keyboard activity in relation to UI elements, and it records each action separately. During each recording session, the recorder can generate both UI and browser automation actions. On Windows 11 the Power Automate for desktop app is preinstalled.

Elsewhere, a single Power Automate installer covers both 32-bit and 64-bit computers, the MSI installer needs admin permissions, and the Microsoft Store download always updates automatically. The steps below turn one recording session into a flow you can run again.
Before you start: Any Windows user can build flows in Power Automate for desktop with little-to-no coding experience. Sign in when the app asks, then keep the window you want to automate open beside it.
- Create a new desktop flow, and in the toolbar of the flow designer, select the recorder button.
- In the recorder window, select the record button and start performing the desired actions in the appropriate application or web page.
- To pause the recording process temporarily, use the pause option, and to add a comment to the recorded actions, use the comment option.
- When the recording process is completed, select the done button to convert the recorded steps to desktop flow actions.
- Remove redundant actions from the recording, since most recorded tasks should be modified to achieve optimal results.
Does Windows have a built-in macro recorder?
Yes: Windows 11 includes the preinstalled Power Automate for desktop app, which records your activity and automatically converts the steps into actions. Steps Recorder is also built into Windows, but it saves screenshots and step-by-step text to a file for review, and it has shown a deprecation banner since the February 2024 Windows 11 update.
Step 2: Map a Shortcut to Text With PowerToys Keyboard Manager
PowerToys Keyboard Manager lets you exchange a key or shortcut for an arbitrary unicode text sequence, so pressing Ctrl+G can send a phrase such as Hello from shortcut!. PowerToys installs on Windows 11 or Windows 10 version 2004 (build 19041) or newer, through an executable file, Microsoft Store, WinGet, Chocolatey or Scoop.

- Install PowerToys, for example by running
winget install --id Microsoft.PowerToys --source winget. - To create mappings with Keyboard Manager, open the PowerToys Settings.
- To remap a shortcut key combination, select the remap a shortcut option, then add a new shortcut remapping row.
- In the “To send” column, choose Text in the combo box and fill the text box with the text you want.
- Leave PowerToys running in the background, because if PowerToys is not running, key remapping will no longer be applied.
Shortcuts must begin with a modifier key (Ctrl, Shift, Alt or Win), must end with an action key, and can’t exceed 4 keys in length, or 5 if the shortcut is a chord. Win+L and Ctrl+Alt+Del cannot be remapped because they are reserved by the Windows OS. Starting in PowerToys 0.100, new installations open the redesigned WinUI 3 editor by default.
Keyboard Manager can also remap shortcuts for only specific apps rather than globally across Windows. Use that when a phrase only makes sense in one program, such as a signature block in your email client.
Step 3: Record Macros in Microsoft Mouse and Keyboard Center
Microsoft Mouse and Keyboard Center records macros as sequences of events (such as keystrokes, mouse clicks, and delays) that you assign to a key or a mouse button, and it saves each one as a .mhm file in the Documents\Microsoft Hardware\Macros subfolder. It only applies if you own a Microsoft keyboard or mouse. To record two events at the same time, right-click the selected event and select Split, which turns it into 3 separate events: a button press-and-hold, a time delay, and a button release.

- Using the Microsoft mouse that you want to configure, start Microsoft Mouse and Keyboard Center.
- In the list under the button that you want to reassign, select the macro option.
- Choose the option to create a new macro, which creates an empty macro and adds it to the macro list.
- In the name box, type the name of the new macro.
- Click in the editor and enter your macro, recording events such as keystrokes, mouse clicks, and delays between actions.
How can I record my keystrokes?
In Mouse and Keyboard Center, click in the editor and type, and the macro records keystrokes, mouse clicks, and delays between actions. It cannot capture mouse movement or actions performed through macros assigned to reassignable keys. For clicks tied to on-screen elements, the Power Automate recorder tracks mouse and keyboard activity in relation to UI elements.
Step 4: Record a Macro in Word or Excel With a Shortcut Key
Word groups a series of commands and instructions into a single command when you record a macro, and it records your clicks and keystrokes while you work. Excel keeps its macro tools on the Developer tab, which is hidden by default, so the first step there is to enable it.

To record in Word:
- On the View tab, choose Macros, then Record Macro.
- To run your macro when you press a keyboard shortcut, select Keyboard and type a combination of keys in the Press new shortcut key box.
- Check whether that combination is already assigned to something else, and if it is, try a different combination.
- To use the shortcut in any new documents, make sure the Save changes in box says Normal.dotm, then select Assign.
- Select the commands or press the keys for each step in the task, using the keyboard to select text, because macros don’t record selections made with a mouse.
- To stop recording, go back to the View tab and choose Macros, then Stop Recording, and to run the macro, press the keyboard shortcut keys.
What is the keyboard shortcut for recording a macro?
Word and Excel ask you for the shortcut when you start a recording: Word uses the Press new shortcut key box, and Excel’s Record Macro dialog has a Shortcut key box. Pick a combination you do not already use, because the macro claims it from then on.
How do you record a VBA macro in Excel?
In Excel, select Record Macro in the Code group on the Developer tab, then enter a name in the Macro name box, a shortcut key in the Shortcut key box and a description in the Description box. Select OK, perform the actions you want to automate, such as entering boilerplate text or filling down a column of data, then select Stop Recording on the Developer tab.
Step 5: Script a Keyboard Macro in AutoHotkey v2
AutoHotkey lists 2.0.30, published on 2026-10-09, as its latest stable version, and it is a free, open-source scripting language for Windows used for form fillers, auto-clicking and macros. Nothing is recorded here; you write each hotkey.
- Download the latest stable version, 2.0.30, from the AutoHotkey downloads page.
- Create a new file and copy the code into it, so existing code won’t interfere with the example.
- Write a hotkey, for example
^!s, where the symbols stand for Ctrl + Alt + S. - Save it as a script (.ahk) file and run it, which is usually just a case of double-clicking the file.
^!s::
{
Send "Sincerely,{enter}John Smith"
}In that example from the AutoHotkey documentation, the Send line sends keystrokes to the active (foremost) window, and the pound sign stands for the Win key. After you’ve started the script, changes to the file do not take effect automatically, so you must reload the script.
Stuck keys and runaway hotkeys: A hotkey such as n:: would activate whenever you press N and would prevent you from typing that character; to undo it, right-click the script’s tray icon and select Exit. Google Safe Browsing sometimes falsely flags the AutoHotkey download directories as containing harmful programs.
Step 6: Record Macros on Razer Devices With Synapse 4
Razer Synapse 4 records keystrokes or mouse functions into a macro that you can assign to any applicable Razer Synapse-enabled product, according to the Razer support guide updated on June 3, 2026. If Synapse 4 will not launch at the first step, work through the fixes for Razer Synapse not opening on Windows before you record anything.
- Plug a Razer Synapse-enabled product into your computer and open Razer Synapse 4.
- Select MACRO, then New Macro.
- Open the drop-down next to RECORD to set the delay functions and how mouse movement is recorded; with Record Delay, a countdown runs before Razer Synapse 4 starts recording.
- Click RECORD, perform your keystrokes, then click STOP to stop recording.
- Click SAVE to save your recorded macro, then assign it to any applicable Razer Synapse-enabled product.
What Four Macro Tools Can’t Do
Power Automate cannot record conditionals and loops, and its recorder might not record all steps from the Windows Start menu or system tray. Four of the tools have a documented blind spot, listed in the table below.
| Tool | Documented limit |
|---|---|
| Power Automate for desktop | Can’t record conditionals and loops; might not record all steps from the Start menu or system tray |
| Microsoft Mouse and Keyboard Center | Can’t capture mouse movement or actions performed through macros assigned to reassignable keys |
| Word macro recorder | Doesn’t record selections made with a mouse |
| PowerToys Keyboard Manager | Can’t remap Win+L or Ctrl+Alt+Del; shortcuts can’t exceed four keys (five for a chord) |
Source: Microsoft Learn, Microsoft Support
Where a recording falls short, the fix is usually to edit rather than re-record. Microsoft’s own recorder documentation advises using the recorder to create the backbone of your flow, since most recorded tasks should be modified to achieve optimal results.
How Windows Macro Tools Changed Since 2021
Pulover’s Macro Creator lists v5.4.1, with setup files dated 2021-09-24, as its latest release, while AutoHotkey published v2.0.30 on 2026-10-09. Release dates matter when you pick a third-party tool, because an app that stopped updating years ago gets no fixes for newer Windows builds.
View the data
Microsoft names Snipping Tool as a good alternative to Steps Recorder for screen recording, and its built-in screen recorder arrived on Windows 11 devices in 2023. Neither one plays input back, so for a replayable macro the choice still comes down to the six methods above.
Common Mistakes When Recording Keyboard Macros
Microsoft’s Mouse and Keyboard Center documentation warns not to save passwords or other sensitive information in macros. Apply that rule to every recorder here, then check the four mistakes below before you blame the tool.
Passwords in macros: Mouse and Keyboard Center keeps each macro as an individual .mhm file in your default Documents\Microsoft Hardware\Macros subfolder. Anything you type during a recording, a password included, becomes part of that macro.
- Selecting text with the mouse while recording in Word, since macros don’t record selections made with a mouse.
- Closing PowerToys, because if PowerToys is not running, key remapping will no longer be applied.
- Switching apps while a macro repeats, since Macro Repeat does not support switching applications.
- Editing an AutoHotkey script without reloading it, since changes to the script’s file do not take effect automatically.
What is the best macro recorder for Windows?
For most Windows 11 users, start with the recorder already on the PC. Windows 11 includes the preinstalled Power Automate for desktop app, whose recorder captures mouse and keyboard functions. AutoHotkey, the scripting option, is free, open-source under the GNU GPLv2 and beginner-friendly, according to its developers. Which tool allows you to record a macro depends on your hardware and apps; our ranked list of best macro recorders for Windows and Mac compares release dates and prices.
Conclusion
Windows 11 already includes a recorder in the preinstalled Power Automate for desktop app, while Steps Recorder has shown a deprecation banner since February 2024 and saves screenshots and annotated steps. Record with Power Automate when a task spans apps, map text with PowerToys when one key should type a phrase, and script AutoHotkey when you want control a recorder cannot give. The operating system market share figures show how Windows compares with macOS and Linux, while the Microsoft Windows statistics track which versions people run.
Update log
- Revised the guide around six methods checked against Microsoft, AutoHotkey and Razer documentation captured on October 12, 2026, adding Power Automate for desktop, PowerToys Keyboard Manager, Word, Excel and Razer Synapse 4.
- Replaced Pulover's Macro Creator as the main third-party pick with AutoHotkey v2 hotkey scripting, because its latest release dates from September 2021.
- Added a table of the documented limits of four of the tools and noted that Steps Recorder has shown a deprecation banner since the February 2024 Windows 11 update.
Cite this page
Thakur, T. (2026, November 20). How to Record Keyboard Macros in Windows 11 and 10: 6 Ways. XtendedView. https://xtendedview.com/record-keyboard-macros-windows/
Thakur, Tushar. “How to Record Keyboard Macros in Windows 11 and 10: 6 Ways.” XtendedView, 20 Nov. 2026, https://xtendedview.com/record-keyboard-macros-windows/.
Thakur, Tushar. “How to Record Keyboard Macros in Windows 11 and 10: 6 Ways.” XtendedView, Last modified November 20, 2026. https://xtendedview.com/record-keyboard-macros-windows/.
Source: <a href="https://xtendedview.com/record-keyboard-macros-windows/">How to Record Keyboard Macros in Windows 11 and 10: 6 Ways</a>, XtendedView





