Powerful. Easy to learn.
The ultimate automation scripting language for Windows.
Version 2.0 is the current release. Its syntax is cleaner and more consistent, the documentation is actively maintained, and new examples and current documentation target it. Choose v2 unless you have a specific reason not to.
Version 1.1 is kept online for people maintaining older scripts that have not been converted yet. It no longer receives feature updates. If an existing .ahk file refuses to run under v2, it was probably written for v1.1; run it with the legacy build or update the script using the v1-to-v2 migration notes.
AutoHotkey v2 and the legacy v1.1 series target Windows desktops. For new scripts, prefer v2 syntax; check third-party script compatibility before running code downloaded from others.
Read the v2 documentation · Follow a first-script tutorial · Back to home
Choose AutoHotkey v2 for new Windows 11 scripts. Keep v1.1 only when a legacy script requires it, because code written for v1 syntax often needs changes before it runs on v2.
Look for an #Requires AutoHotkey v2.0 directive, and compare function calls and command syntax with the v1-to-v2 migration notes. Do not run untrusted scripts without reviewing them.
Start with hotkeys, then the key name reference and practical examples. Test new scripts in a non-administrator account first.