
📎 This article includes 1 downloadable practice file ↓
10 Useful AutoHotkey Scripts
AutoHotkey (free, Windows) turns keystrokes into actions. These scripts use AutoHotkey v2 syntax. Install it from autohotkey.com, save the code in a file ending in .ahk, and double-click to run. Put a shortcut to it in your Startup folder (Win+R → shell:startup) to run it every time you log in.
#Requires AutoHotkey v2.0
; 1. Text expansion: type ;em and it becomes your email signature
::;em::Regards,`nAsha Verma`nAccounts Team | +91 98xxxxxx10
; 2. Frequently typed IDs
::;gst::27ABCDE1234F1Z5
::;addr::Plot 12, Sector 5, New Delhi 110001
; 3. Today's date in dd-mm-yyyy with ;dd
::;dd:: {
SendText FormatTime(, "dd-MM-yyyy")
}
; 4. Paste as plain text: Ctrl+Shift+V everywhere
^+v:: {
A_Clipboard := A_Clipboard ; drops formatting
Send "^v"
}
; 5. Keep the active window always on top: Ctrl+Space
^Space:: WinSetAlwaysOnTop -1, "A"
; 6. Clean clipboard text: trim spaces and join lines (Ctrl+Alt+C)
^!c:: {
t := Trim(RegExReplace(A_Clipboard, "\s+", " "))
A_Clipboard := t
ToolTip "Cleaned: " SubStr(t, 1, 40)
SetTimer () => ToolTip(), -1500
}
; 7. Open your daily files with Win+Alt+E
#!e:: Run "C:\Reports\Daily MIS.xlsx"
; 8. Google the selected text with Ctrl+Alt+G
^!g:: {
A_Clipboard := ""
Send "^c"
if ClipWait(1)
Run "https://www.google.com/search?q=" A_Clipboard
}
; 9. Excel only: F1 does nothing annoying (no Help pop-up)
#HotIf WinActive("ahk_exe EXCEL.EXE")
F1::F2
#HotIf
; 10. Type a long standard reply with ;ty
::;ty::Thank you for your email. We have received your request and will respond within one working day.
Older tutorials use AutoHotkey v1 syntax (no parentheses, Send, text). v1 scripts do not run under v2 without changes. See also text expansion basics.
📎 Practice files for this article
- ⌨️Office toolkit script (AutoHotkey v2)Practice file from the matching course lesson.⬇ 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.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time — plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul →Stuck on a step? Ask a question and the AI answers using this article.