# AutoHotkey

AutoHotkey tool for keyboard\-driven desktop automation or reusable text expansion\.

ID: Q1294 · Revision: 1342

Type: software · License: GPL\-2\.0[^ahk-license] · Status: active

Website: https://www.autohotkey.com/



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\.[^ahk][^ahk-migration]

## 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\.[^ahk-hotkeys][^ahk-strings]

## 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\.[^ahk-context]

## 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\.[^ahk-scripts]

## 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\.[^ahk-migration]

## 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\.[^ahk-license][^ahk]

## Substitution considerations

AutoHotkey can substitute for [AutoIt](/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\.[^ahk][^ahk-hotkeys][^ahk-strings][^autoit]

## Capabilities and substitutions

### Unchanged v1\-to\-v2 scripts — limited

The migration guide documents substantial syntax and library changes; old scripts require review\.[^ahk-migration]

Use case: Desktop automation and text expansion · Platforms: Windows · Region: Operating\-system, application and permission requirements apply

### [Substitute for AutoIt](/autoit) — limited

Suitable for Windows keyboard\-driven automation; script syntax, libraries and control behavior differ\.[^ahk][^autoit]

Use case: Desktop automation · Platforms: Windows · Region: Operating\-system, application and permission requirements apply

## References

[^ahk-license]: [AutoHotkey license](<https://github.com/AutoHotkey/AutoHotkey/blob/alpha/license.txt>) — GPL version 2 (vendor; retrieved 2026-10-07T05:11:00Z)

[^ahk]: [AutoHotkey README](<https://github.com/AutoHotkey/AutoHotkey/blob/alpha/README.md>) — Custom scripting; Windows builds; v1 no longer maintained (vendor; retrieved 2026-10-07T05:10:26Z)

[^ahk-migration]: [AutoHotkey v1\-to\-v2 changes](<https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/v2-changes.htm>) — Legacy syntax removal and function\-style changes (vendor; retrieved 2026-10-07T05:12:39Z)

[^ahk-hotkeys]: [AutoHotkey v2 hotkeys](<https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/Hotkeys.htm>) — Keyboard/mouse shortcuts, modifiers and actions (vendor; retrieved 2026-10-07T05:11:25Z)

[^ahk-strings]: [AutoHotkey v2 hotstrings](<https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/Hotstrings.htm>) — Abbreviation replacement and scripted actions; ending characters (vendor; retrieved 2026-10-07T05:11:25Z)

[^ahk-context]: [AutoHotkey context\-sensitive triggers](<https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/lib/_HotIf.htm>) — Conditional hotkeys/hotstrings and native behavior when inactive (vendor; retrieved 2026-10-07T05:11:59Z)

[^ahk-scripts]: [AutoHotkey scripts](<https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/Scripts.htm>) — Plain\-text scripts; startup execution; event persistence; syntax validation (vendor; retrieved 2026-10-07T05:11:59Z)

[^autoit]: [AutoIt](<https://www.autoitscript.com/site/autoit/>) — Windows BASIC\-like automation; controls, GUIs, COM and AutoItX (vendor; retrieved 2026-10-07T05:10:14Z)

Source revision: https://substitutefor.net/entities/Q1294?revision=1342
