Create the script file
Right-click on the desktop, choose **New > AutoHotkey Script** and open the file in a real editor. The default template is a comment header you can ignore.
Signatures, ticket numbers, awkward menu shortcuts - a ten-line script replaces all of them, and it starts with the system.
Install **AutoHotkey v2**, write one `.ahk` file with **hotstrings** for text and **hotkeys** for actions, and put it in the **Startup** folder. Test in Notepad before using it in a real app.
Right-click on the desktop, choose **New > AutoHotkey Script** and open the file in a real editor. The default template is a comment header you can ignore.
A hotstring triggers on typed text. The syntax is a double colon, the trigger, another double colon and the replacement in quotes. Type it anywhere and it expands.
::@@::you@example.com
::mfg::Mit freundlichen Grüßen
A hotkey binds keys to commands. **Send** types text, **Run** opens a program, **WinActivate** focuses a window. Two colons, the key, another two and the command.
#n::Run "notepad.exe"
^!s::Send "{Esc}"
Right-click the script and choose **Run Script**. A green H icon appears in the tray. Test every hotstring in Notepad before you try it in a chat window or an IDE.
Put a shortcut to the .ahk file in **shell:startup**. A script that has to be started by hand is a script you stop using after a week.
Win + R > shell:startup
One file, one purpose, a comment above each block. Copy it into your backup - it is the most valuable ten kilobytes on the machine.
It is not running, or it is running as v1 while the syntax is v2. Check the tray icon and the script's error window.
Games read raw input, so hotstrings usually do not fire there at all. If they do, add **#IfWinActive** to limit the script to one window.
Unsigned AutoHotkey scripts are often flagged. Compile it or whitelist the folder - do not disable the antivirus.
Another app took the combination. Check the tray for overlay software and pick an unused prefix.
v2. New scripts should use it; v1 only matters for old code you find online.
Macros that play the game for you violate most anti-cheat rules. Typing helpers are a different thing.
Exit the script from the tray icon and remove the shortcut from **shell:startup**. Delete the .ahk file if you do not want it back.
Free · no account needed · tracks your progress