AutoHotkey Lesson 6: Project — An Office Productivity Toolkit

📎 This article includes 1 downloadable practice file ↓

⏱ 1 min read

📘 AutoHotkey Beginner Course · Lesson 6 of 6

In this article
  1. Structure
  2. Start with Windows
  3. Where people go wrong
  4. Practice

One script, running from startup, with the shortcuts you use every day. Here’s how to organise it so it stays maintainable.

Structure

  1. Header: #Requires AutoHotkey v2.0 and #SingleInstance Force (reloading replaces the old copy).
  2. Snippets (hotstrings) grouped together.
  3. App launchers (Win+letter).
  4. App-specific blocks with #HotIf.
  5. Clipboard tools.
  6. 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