
📎 This article includes 1 downloadable practice file ↓
In this article
One script, running from startup, with the shortcuts you use every day. Here’s how to organise it so it stays maintainable.
Structure
- Header:
#Requires AutoHotkey v2.0and#SingleInstance Force(reloading replaces the old copy). - Snippets (hotstrings) grouped together.
- App launchers (Win+letter).
- App-specific blocks with #HotIf.
- Clipboard tools.
- A help hotkey listing everything.
^!c::{ ; clean copied text and paste
A_Clipboard := Trim(RegExReplace(A_Clipboard, "\s+", " "))
Send "^v"
}
💡 Keep the script in OneDrive so it follows you between PCs, and add a comment on every hotkey; in six months you won’t remember what Ctrl+Alt+K does.
Start with Windows
Win+R › shell:startup › paste a shortcut to the script. Done.
Where people go wrong
| Problem | Fix |
|---|---|
| Several copies running | #SingleInstance Force |
| Forgotten hotkeys | A help hotkey |
That’s the AutoHotkey course. More ideas: 10 useful AutoHotkey scripts.
Practice
Run the toolkit, customise the snippets, and add it to your Startup folder.
📎 Practice files for this article
- ⌨️Lesson 6 script (AutoHotkey v2)Double-click to run after installing AutoHotkey v2.⬇ AHK · 780 B
Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.
✨ Ask AI about this article
Stuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong