
📎 This article includes 1 downloadable practice file ↓
How many times a day do you type your email address, a standard reply, or today’s date? AutoHotkey is a free Windows tool that turns short abbreviations into full text and any key combination into an action.
In this article
Install and create a script
- Download AutoHotkey v2 from autohotkey.com and install it.
- Right-click the desktop → New → AutoHotkey Script, name it
my-shortcuts.ahk. - Right-click it → Edit, paste the script below, save, then double-click the file to run it.
A starter script
#Requires AutoHotkey v2.0
; ---- Text expansion: type the abbreviation followed by space or Enter
::@@::atul@example.com
::brb::be right back
::thx::Thanks for the quick response — I will review and revert shortly.
; ---- Insert today's date when you type ;dt
:X:;dt::SendText FormatTime(, "dd-MMM-yyyy")
; ---- Hotkeys: ^ = Ctrl, ! = Alt, + = Shift, # = Windows key
^!e::Run "excel.exe" ; Ctrl+Alt+E opens Excel
^!n::Run "notepad.exe" ; Ctrl+Alt+N opens Notepad
#!c:: ; Win+Alt+C: copy selected text as plain text
{
A_Clipboard := ""
Send "^c"
if ClipWait(1)
A_Clipboard := A_Clipboard ; strips formatting
}
How it works
::abbr::textis a hotstring: type the abbreviation and an ending key and it is replaced.:X:makes the hotstring execute code instead of typing text — here it types the formatted date.^!e::is a hotkey: the action after::runs when you press the combination.
shell:startup) so it runs every time Windows starts.Try it yourself: step by step
- Install AutoHotkey v2, then download my-shortcuts.ahk.
- Right-click it → Edit (or open in Notepad) and change
you@example.comto your email. Save. - Double-click the file — a green “H” icon appears in the system tray.
- Open Notepad and type
@@then a space: it becomes your email. Type;dtand a space: today’s date appears. - Press Ctrl+Alt+N to open Notepad from anywhere. Right-click the tray icon → Exit to stop the script.
📎 Practice files for this article
- ⌨️Starter AutoHotkey scriptNeeds AutoHotkey v2. Edit the email and phrases, then double-click to run.⬇ AHK · 428 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.