Macro Not Typing Text or Typing the Wrong Characters? Fixes That Work
A macro that types nothing is almost always a stopped tool, an administrator window, or a trigger that never completes. Check those three in that order. This page is part of our guide to making a macro that inserts text with one keypress, and it covers PowerToys, AutoHotkey and typed-trigger tools on Windows.
Start with the three checks that solve most failures
Run the three-check order: is the tool running, is the target window elevated, and does the trigger complete without interruption. The order matters because each answer rules out a whole group of causes before you read any settings.
- Is the tool running?Look in the system tray or Task Manager. A tool that has exited cannot type anything, and PowerToys states that its remaps stop when it closes.
- Is the target window elevated?A window started with Run as administrator ignores input from a normal-rights tool. Try the same macro in Notepad. If it works there, elevation is the cause.
- Does the trigger complete?For typed triggers, any click or arrow key in the middle resets the match. Type it again, slowly, without touching the mouse.
Test with Notepad after each change. A result there separates a broken macro from a window that refuses input.
Why a macro works in Notepad but not in one specific app
When only one program fails, that program treats input differently. It may run as administrator, it may be a game that reads keys directly, or it may be a remote session that receives only what the local window passes on. Each tool documents some of these limits.
| Situation | PowerToys Keyboard Manager | AutoHotkey |
|---|---|---|
| Administrator window | No effect unless PowerToys runs as administrator | Check the AutoHotkey documentation for your script’s run level |
| Sign-in and password screens | Not available | Not covered by the hotstring documentation we read |
| Games | Not recommended; interception can affect frame rates | Varies by game |
| Win+L and Ctrl+Alt+Del | Cannot be remapped | Reserved by Windows |
A password prompt is a deliberate exception. A macro should never type a password for you anyway; use a password manager for that.
Typed triggers that never fire or fire inside words
A typed trigger fires only when the tool sees the whole abbreviation in an uninterrupted run. AutoHotkey’s documentation lists what breaks that run: mouse clicks, arrow keys, Home, End, Page Up and Page Down, all of which reset the match.
Four more AutoHotkey rules explain most surprises. By default a hotstring waits for an ending character such as Space or Enter. Keystrokes that another script sends do not fire hotstrings unless you change that. When two hotstrings match, the one defined first in the file wins. Abbreviations can be up to 40 characters.
Fires too often
The abbreviation is short or common. Add a prefix such as a comma, or lengthen it.
Never fires
An interruption reset the match, or the ending character was missing. Type it again without clicking.
Wrong characters and half-typed text
Garbled output comes from three places: the command used to send the text, the keyboard layout, and the size of the text. Use a send-text command for exact strings, match the layout you wrote the macro on, and split very long text into two macros.
AutoHotkey’s documentation recommends SendText for strings with ! or { }, because plain Send reads those as commands. In default SendInput mode the replacement text tops out at about 5,000 characters. PowerToys sends any Unicode string, which makes it the safer pick for accents and symbols.
Pasting text from a web page or Word into a macro field can carry hidden characters such as non-breaking spaces. Retype one suspicious word and test again.
Macros that vanish after a restart or after closing the tool
Macro tools only type while they run. After a restart, a macro that worked yesterday has usually just not been started. Turn on the tool’s own start-with-Windows option and confirm with a reboot test.
A 2022 German review of Macro Keys says the program must be running for its functions to work, and that it can be set to start with Windows. The Options screen of the Macro Keys program shows that setting, along with the prefix and an optional password. See the review itself for the launcher details.

For a wider set of fixes, return to the misfire table in the main guide.
Still stuck? Try a different trigger style
A typed trigger in a visual editor removes script errors from the picture, and a macro list makes missing or duplicate triggers easy to see. Macro Keys is free and runs on Windows.
Common questions on this fix
Why does my macro work in Notepad but not in another program?
The other program probably runs with higher rights or blocks simulated input. PowerToys documents that remaps do not work in an administrator window unless PowerToys also runs as administrator. Games and remote desktop sessions are the other usual suspects. Compare the macro in two or three plain apps to narrow it down.
Why does my AutoHotkey hotstring not fire?
Check the ending character first. By default a hotstring waits for Space, a period or Enter after the abbreviation, and a mouse click or arrow key resets what AutoHotkey has matched so far. Add the asterisk option if you want it to fire at once.
Why does my macro type special characters wrongly?
With AutoHotkey, plain Send treats characters such as ! and { } as commands. Use SendText so the whole string is typed as written. Also check the keyboard layout, because the same key code produces different characters on different layouts. Test with a short string first.
Do macros stop when I close the tool?
Yes. PowerToys states that remaps stop when it closes, and typed-trigger tools generally need to stay running too. Turn on each tool’s start-with-Windows option, and check the system tray after a restart to confirm the tool launched. A tool that is not running does nothing at all.
Why does the macro fire inside ordinary words?
The trigger is too short or too common. Lengthen it or add a prefix such as a comma that you never type in sentences. In AutoHotkey, the question-mark option makes a hotstring fire even inside another word, so leave it off. Test the change in a plain text editor.