AutoHotkeyToolsDownloadKey ListExamplesHotkeys

Home / AutoHotkey v2 Hotkey Examples for Windows 11

AutoHotkey v2 Hotkey Examples for Windows 11

Practical AutoHotkey v2 shortcuts for Windows 11: launch apps, insert dates, type templates and avoid hotkey conflicts.

These examples use AutoHotkey v2 on Windows 11 or Windows 10. Copy a code sample into a UTF-8 text file, save it with the .ahk extension, and run it with the v2 interpreter. Check any script from an unfamiliar source before executing it.

Run Notepad with Ctrl+Alt+N

^!n::Run "notepad.exe"

Use the caret for Ctrl and exclamation mark for Alt. Save as .ahk and double-click it after installing AutoHotkey v2.

Type a standard reply using a hotstring

::brb::Be right back.

A hotstring expands the typed abbreviation when its end character is entered; use a rare trigger to avoid unintended replacements.

Open a website with Win+Shift+B

#+b::Run "https://example.com"

Win is # and Shift is +. Change the URL to your own trusted destination.

Show a message with F8

F8::MsgBox "Shortcut works"

Test hotkeys with a harmless message before making them modify files or other applications.

Limits and safety checks

Hotkeys may fail when another program reserves the combination, or when the target is elevated but the script is not. Choose combinations that do not interfere with Windows accessibility and system commands.

Frequently asked questions

Does this run on Windows 11?

Yes, AutoHotkey v2 supports Windows 11 and Windows 10 for desktop automation; individual apps can impose their own limitations.

Is AutoHotkey v1 syntax compatible with v2?

Not always. AutoHotkey v2 changes many commands and expressions; use v2 examples with the v2 interpreter.

More AutoHotkey resources

Download AutoHotkey v2 · AHK key names · Hotkey not working · Migrate v1 to v2