AutoHotkey AutoHotkey tool for keyboard-driven desktop automation or reusable text expansion.
Overview AutoHotkey is an open-source Windows automation tool driven by its own scripting language. It is especially suited to keyboard shortcuts, typed abbreviations and event-driven desktop actions. Current v2 scripts use a different language model from older v1 examples, and the project states that v1 is no longer maintained.[2] [3]
Contents Hotkeys and hotstrings Hotkeys bind keyboard, mouse or controller inputs to actions. Hotstrings usually replace a typed abbreviation, but can also run scripted operations. Their ending-character and case behavior is configurable. This supports both repetitive text entry and broader desktop shortcuts, while keeping the trigger distinct from the action it invokes.[4] [5]
Application-sensitive behavior The v2 context directive allows hotkeys and hotstrings to depend on an expression, such as which application window is active. An inactive keyboard or mouse binding normally leaves the native input behavior available. Context rules are useful when a shortcut should affect one application without replacing the same key combination everywhere.[6]
Script execution Scripts are plain-text programs loaded and validated before execution. Startup code runs when the script begins; hotkeys, timers, visible interfaces or other event sources can keep it running afterward. Opening a script for execution is therefore different from merely importing passive configuration, even if its most visible purpose is a small keyboard shortcut.[7]
Version migration The v1-to-v2 guide documents removal of legacy command syntax, changes to variables and expressions, and function-based hotkey bodies. Existing v1 scripts should not be assumed to run unchanged under v2. Migration requires checking both language syntax and library behavior, rather than only installing a newer interpreter or renaming the file.[3]
Licensing and platform AutoHotkey is distributed under GPL version 2 terms, with Windows 32-bit and x64 build targets documented by the project. This article concerns the Windows automation utility, not a cross-platform implementation of its scripting language. Source availability and runtime platform support are separate properties.[1] [2]
Substitution considerations AutoHotkey can substitute for AutoIt for Windows keyboard-driven automation and repetitive desktop tasks. Its hotkey and hotstring syntax offers a different authoring model from AutoIt's BASIC-like language. Existing scripts, GUI-control assumptions and external-library calls need adaptation; shared Windows support does not make their automation files interchangeable.[2] [4] [5] [8]
References AutoHotkey license GPL version 2
vendor · retrieved 2026-10-07 AutoHotkey README Custom scripting; Windows builds; v1 no longer maintained
vendor · retrieved 2026-10-07 AutoHotkey v1-to-v2 changes Legacy syntax removal and function-style changes
vendor · retrieved 2026-10-07 AutoHotkey v2 hotkeys Keyboard/mouse shortcuts, modifiers and actions
vendor · retrieved 2026-10-07 AutoHotkey v2 hotstrings Abbreviation replacement and scripted actions; ending characters
vendor · retrieved 2026-10-07 AutoHotkey context-sensitive triggers Conditional hotkeys/hotstrings and native behavior when inactive
vendor · retrieved 2026-10-07 AutoHotkey scripts Plain-text scripts; startup execution; event persistence; syntax validation
vendor · retrieved 2026-10-07 AutoIt Windows BASIC-like automation; controls, GUIs, COM and AutoItX
vendor · retrieved 2026-10-07 Also included: 1 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.