How to Record Keyboard Macros in Windows 11 and 10: 6 Ways

Updated: Checked by Editorial TeamThe 17 sources from 4 publishers behind this article are listed in References at the end.See the sources How we fact check
Updated Checked by Editorial TeamThe 17 sources from 4 publishers behind this article are listed in References at the end.See the sources How we fact check
Tushar Thakur Written by Tushar Thakur Tushar Thakur Tushar Thakur Founder 78 articles Tushar Thakur founded XtendedView in 2011 while studying Electronics and Instrumentation Engineering in Mumbai, and in 2013 IndiBlogger named it the best blog in its gadgets category. He has spent more than a decade building tech blogs and working on search optimisation and online marketing, and co-founded the agency WebGeeksMedia. He sets XtendedView's editorial direction and writes about Windows customisation, Android tweaks and the gadgets he tests himself. View profile
Supriya Gharat Reviewed by Supriya Gharat Supriya Gharat Supriya Gharat Editor in Chief 219 articles Supriya is XtendedView's Editor in Chief. She leads a research team of five and reviews the articles the site publishes, with a focus on tracing every figure to the organisation that first reported it. She oversees the statistics coverage across AI, cybersecurity, gaming, internet platforms and consumer technology. Away from work, she prefers travel and quiet, focused spaces that suit her analytical way of working. View profile
Fact checked by Editorial Team Editorial Team 6 articles Articles under the Editorial Team byline are researched and written by XtendedView staff, then reviewed by an editor before publishing. Each one follows our Fact-Check Policy, and statistics pages follow our Statistics Methodology. View profile
Research by Research Desk Research Desk Research Desk is XtendedView's team of researchers. They gather the figures behind every statistics article using advanced in-house research tools, trace each number to the organisation that first published it, and hand the sourced data to the writer and the editor who reviews it. View profile
How to Record Keyboard Macros in Windows 11 and 10: 6 Ways

Share

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.

How to Record Keyboard Macros in Windows 11 and 10: 6 Ways

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.

MethodHow you build the macroWhere it worksFits this job
Power Automate for desktopRecord mouse and keyboard actionsDesktop and web applicationsMulti-step tasks across apps
PowerToys Keyboard ManagerMap a key or shortcut to text or another shortcutAll of Windows or specific appsTyping a fixed phrase from one key
Microsoft Mouse and Keyboard CenterRecord keystrokes, mouse clicks and delaysA key or button on a Microsoft keyboard or mouseRepeating a sequence from one button
Word and Excel macro recorderRecord clicks and keystrokes in the appInside Word or ExcelDocument and spreadsheet chores
AutoHotkey v2Write a hotkey scriptAny desktop taskCustom hotkeys and text replacement
Razer Synapse 4Record keystrokes or mouse functionsRazer Synapse-enabled productsMacros 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.

Power Automate for desktop Recorder window with the Record button highlighted
The Recorder window opens beside the Power Automate flow designer; select Record and then perform the actions you want to capture.

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.

  1. Create a new desktop flow, and in the toolbar of the flow designer, select the recorder button.
  2. In the recorder window, select the record button and start performing the desired actions in the appropriate application or web page.
  3. To pause the recording process temporarily, use the pause option, and to add a comment to the recorded actions, use the comment option.
  4. When the recording process is completed, select the done button to convert the recorded steps to desktop flow actions.
  5. 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.

PowerToys Settings Keyboard Manager page with the Remap a shortcut option highlighted
On the Keyboard Manager page of PowerToys Settings, select Remap a shortcut to open the shortcut remapping window.
  1. Install PowerToys, for example by running winget install --id Microsoft.PowerToys --source winget.
  2. To create mappings with Keyboard Manager, open the PowerToys Settings.
  3. To remap a shortcut key combination, select the remap a shortcut option, then add a new shortcut remapping row.
  4. In the “To send” column, choose Text in the combo box and fill the text box with the text you want.
  5. 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.

Microsoft Mouse and Keyboard Center macro screen with Create a new Macro, the Name box and the Editor marked 1 to 3
In Mouse and Keyboard Center, click Create a new Macro, type a name in the Name box, then click in Editor and enter your keystrokes and clicks.
  1. Using the Microsoft mouse that you want to configure, start Microsoft Mouse and Keyboard Center.
  2. In the list under the button that you want to reassign, select the macro option.
  3. Choose the option to create a new macro, which creates an empty macro and adds it to the macro list.
  4. In the name box, type the name of the new macro.
  5. 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.

Word Record Macro dialog with the Keyboard button highlighted
In Word's Record Macro dialog, type a macro name, keep Store macro in set to All Documents (Normal.dotm) and select Keyboard to assign a shortcut.

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.

  1. Download the latest stable version, 2.0.30, from the AutoHotkey downloads page.
  2. Create a new file and copy the code into it, so existing code won’t interfere with the example.
  3. Write a hotkey, for example ^!s, where the symbols stand for Ctrl + Alt + S.
  4. 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.

  1. Plug a Razer Synapse-enabled product into your computer and open Razer Synapse 4.
  2. Select MACRO, then New Macro.
  3. 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.
  4. Click RECORD, perform your keystrokes, then click STOP to stop recording.
  5. 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.

ToolDocumented limit
Power Automate for desktopCan’t record conditionals and loops; might not record all steps from the Start menu or system tray
Microsoft Mouse and Keyboard CenterCan’t capture mouse movement or actions performed through macros assigned to reassignable keys
Word macro recorderDoesn’t record selections made with a mouse
PowerToys Keyboard ManagerCan’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.

5 EVENTS · Source: Pulover’s Macro Creator and AutoHotkey GitHub releases, Microsoft Power Platform blog, Microsoft Support, October 2026 5 EVENTS Pulover’s Macro · 2026 Windows Macro Tool Milestones, 2021 to 2026 2021 Pulover’s Macro Creator v5.4.1 setup files published on September 24 2022 Microsoft blog posts a getting-started guide for Power Automate for desktop in Windows 11 2023 Snipping Tool gains a built-in screen recorder on Windows 11 devices 2024 Steps Recorder gets a deprecation banner in the February Windows 11 update 2026 AutoHotkey publishes v2.0.30 on October 9 SOURCE Pulover’s Macro Creator and AutoHotkey GitHub releases, Microsoft Power Platform blog, Microsoft Support, October 2026
View the data
YearEvent
2021Pulover's Macro Creator v5.4.1 setup files published on September 24
2022Microsoft blog posts a getting-started guide for Power Automate for desktop in Windows 11
2023Snipping Tool gains a built-in screen recorder on Windows 11 devices
2024Steps Recorder gets a deprecation banner in the February Windows 11 update
2026AutoHotkey publishes v2.0.30 on October 9

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.

Found this useful?

Pass it on to someone who could use it.

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

References17 sources from 4 publishers

  1. Get started with Power Automate in Windows 11
  2. Record desktop flows
  3. How do I create macros in the Microsoft Mouse and Keyboard Center?
  4. Remap Keys and Shortcuts with PowerToys Keyboard Manager
  5. Install PowerToys
  6. Create or run a macro
  7. Quick start: Create a macro
  8. Steps Recorder deprecation
Show all 17 sourcesShow fewer
  1. AutoHotkey
  2. AutoHotkey Downloads
  3. AutoHotkey v2.0.30 Release
  4. AutoHotkey v2 Hotkeys documentation
  5. Releases: Pulover/PuloversMacroCreator
  6. How to create or delete macros on Razer Synapse
  7. How to Run Example Code
  8. Pulover's Macro Creator
  9. Install Power Automate

Written by

Tushar Thakur Founder (78 articles, writing here since 2011)

Tushar Thakur founded XtendedView in 2011 while studying Electronics and Instrumentation Engineering in Mumbai, and in 2013 IndiBlogger named it the best blog in its gadgets category. He has spent more than a decade building tech blogs and working on search optimisation and online marketing, and co-founded the agency WebGeeksMedia. He sets XtendedView's editorial direction and writes about Windows customisation, Android tweaks and the gadgets he tests himself.

Supriya Gharat Reviewed by Supriya Gharat

The week in tech, made simple

New tutorials, quick fixes and the numbers behind the headlines, in one short email.

  • Weekly, never daily
  • No spam, ever
  • Unsubscribe anytime

Disclaimer: XtendedView publishes general information, not legal, financial or professional advice. Figures come from the sources named on each page and can change, so check the original source and its date before you rely on a number. Back up your device before following a tutorial. A few articles carry affiliate links, and a commission never changes a review or a statistic. Read our Disclaimer

Contents 13 sections
Back to the top of the page