Windows 11 Keyboard Macros: How to Create & Record Them

Macros help you automate tasks in Windows and save a lot of time

Reading time icon 7 min. read

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • You can automate tasks by setting up Windows 11 keyboard macros with recording tools and manually setting them up.
  • It is possible to set up keyboard shortcuts that open programs without additional third-party software.
  • We also highlight some third-party programs which you can use to set up keyboard macros in different ways.
windows 11 keyboard macros

A macro is an instruction series incorporated within a single command you can execute by selecting to play it or pressing a key combination. They can be prerecorded macros, script files, or even Windows hotkeys.

A keyboard macro is one triggered by pressing a key combination. Windows 11 includes many hotkeys for common tasks (for example Ctrl + C copies text) that can be considered built-in keyboard macros.

Keyboard macros automate repetitive tasks. For instance, if the Ctrl + C keyboard macro (or shortcut) didn’t exist, you would have to select the Copy option in the Edit menus manually.

There are a few ways you may create custom keyboard macros. You can record macros, set up scripts triggered with custom hotkeys, or set up keyboard shortcuts that open programs.

Can you use macros on any keyboard?

You can set up custom software macros on any keyboard. Software macros are those that are recorded or manually scripted in Windows with hotkeys that activate them.

However, some gaming keyboards have dedicated macro keys. Those are keyboards with an onboard macro recording that enables you to set up custom hardware macros without additional software.

Does Windows 11 have a macro recorder?

The Power Automate app included in Windows 11 is something like a macro recorder with which users can record flow tasks. However, its users can’t assign key combinations (hotkeys) to play flows.

Therefore, Power Automate is not something with which you can set up keyboard macros in Windows 11. However, you can set up keyboard macros in Windows 11 with any of the methods below.

How do I create a macro keyboard in Windows 11?

1. Record a keyboard macro with TinyTask

  1. Visit the Github dedicated page for Portable TinyTask.
  2. Double-click the TinyTaskPortable file to download TinyTask.
  3. After downloading, double-click the executable file to install the app.
  4. Press the Rec button on the TinyTask toolbar.
    Rec button windows 11 keyboard macros
  5. Then perform the task you want the macro to do when played. For example, you can open a couple of software packages you want to run at the same time by pressing a hotkey.
  6. Click Rec again to stop recording the macro when done.
  7. Press the default Ctrl + Shift + Alt + P hotkey to play the keyboard macro.
  8. You can select alternative hotkeys for the keyboard macro by clicking Preferences and hitting the Playback Hotkey. Select a different hotkey for playing the macro from the submenu.
    Playback History option windows 11 keyboard macros
  9. Press Save on TinyTask’s toolbox.
    The Save button windows 11 keyboard macros
  10. Give the macro a name, select a directory for it, and click Save.
  11. Whenever you want to use the macro, click Open in TinyTask to select it. Then press the key combination for the macro.

2. Set up a keyboard macro (hotkey) for opening a program

  1. Press the Start Menu’s Windows taskbar icon.
  2. Select the All apps option to view your Start Menu’s software shortcuts.
    All apps button windows 11 keyboard macros
  3. Left click and drag a program to set up a keyboard macro onto the desktop. Then you should see a desktop shortcut for the software.
    Start menu windows 11 keyboard macros
  4. Click the desktop shortcut for the software with your right mouse button and select Properties.
    Properties option windows 11 keyboard macros
  5. Then click inside the desktop shortcut’s key box.
  6. Press a key to create a Ctrl + Alt keyboard macro. For example, pressing T will set up a Ctrl + Alt + T hotkey.
    Shortcut key box windows 11 keyboard macros
  7. Select Apply to set the new keyboard macro and click OK to exit the shortcut’s properties window.
  8. Press your Ctrl + Alt hotkey for your keyboard macro. That keyboard macro will open the software you assigned it to, which will save you manually opening the app from the Start Menu.

3. Set up a batch file keyboard macro

  1. Click the Search icon on your taskbar, type notepad, and click the Notepad text editor app.
  2. Input a batch file script within Notepad.
    A batch script windows 11 keyboard macros
  3. Click the File menu button at the top of Notepad.
  4. Select that menu’s Save as option.
    Save as option windows 11 keyboard macros
  5. Next, select the All files option that’s on the Save as type menu.
    All files option windows 11 keyboard macros
  6. Erase *txt from the file name box.
  7. Input a title for your batch file in the text box that includes the .bat extension at the end of it. For example, you could enter something like Keyboard Macro.bat.
  8. Choose somewhere to save the batch file.
  9. Click the Save button and close the batch file in Notepad.
  10. Open whatever folder includes your batch file, right-click it, and select Show more options, then select Create shortcut.
    Create shortcut option windows 11 keyboard macros
  11. Right-click the batch file’s desktop shortcut to set up a hotkey for activating it as outlined in the previous method.
  12. Then press the key combination for the batch file to run its script.

You can set up batch file keyboard macros for automating many tasks in Windows. It’s beyond the scope of this guide to provide details about how to script batch files. However, you can look at many batch script tutorial websites on the internet.

For example, set up a script that opens multiple websites. Input the following batch script into Notepad for step three:

@echo off

That macro will open the Google and Bing search engines in your default browser when you press its hotkey. You can replace the websites in that script or add new ones to open in additional lines.

4. Set up a keyboard macro with AutoHotkey

  1. Open the AutoHotkey website.
  2. Click Download on that homepage.
    The Download option windows 11 keyboard macros
  3. Double-click the downloaded AutoHotkey setup file.
  4. Select the Express Installation option and click Run AutoHotkey after installing.
  5. Right-click somewhere on the desktop wallpaper to select New and select AutoHotkey Script.
    The AutoHotkey Script option windows 11 keyboard macros
  6. Enter a title for the AutoHotkey script.
  7. Right-click the AutoHotkey script file to select Open with.
  8. Then select Choose another app and choose Notepad.
  9. Input a hotkey macro script in Notepad. This AutoHotkey help page includes details about how to incorporate hotkeys in scripts.
    AutoHotkey script windows 11 keyboard macros
  10. Then click File on Notepad’s Menu bar.
  11. Click Save as to bring up that window and select the All files option.
  12. Choose a folder location, and click Save.
    Save button windows 11 keyboard macros
  13. Double-click the AutoHotkey script file you just set up to run it.
  14. Press the hotkey you incorporated within the script to activate it.

The Autokey website includes a beginner’s guide that explains how you can create macro scripts with that software. You can also get premade scripts at AutoHotkey’s script showcase page.

If you like, you can also add a keyboard shortcut for running the script. To do so, you’ll need to create a desktop shortcut for the script’s file and then add a hotkey to it as covered in the second method.

How do I automate tasks in Windows 11?

You can automate tasks in Windows 11 with the aforementioned Power Automate app or Task Scheduler. Task Scheduler is a utility with which you can set up scheduled tasks.

However, neither Power Automate nor Task Scheduler includes options for creating keyboard macros. You’ll need to apply the methods above or utilize macro-recording software to set up keyboard macros.

What are the best keyboard macros?

The best keyboard macro is whatever one you find to be most useful. However, many users may find keyboard macros that open multiple programs and websites to be especially handy.

Creating keyboard macros will enable you to automate routine and repetitive Windows tasks. AutoHotkey is a great scripting tool and TinyTask is a simple-to-utilize recording utility for creating keyboard macros.

There are also many other automation programs with which you can set up keyboard macros. Our best programs to automate PC tasks guide tells you about alternative Windows software for creating macros.

So, have fun setting up keyboard macros in Windows 11. If you have any questions about setting up keyboard macros, feel free to add them in the comments box below.

More about the topics: Windows 11 Tips