{"schemaVersion":"1.0","record":{"label":"AutoHotkey","description":"AutoHotkey tool for keyboard-driven desktop automation or reusable text expansion.","aliases":["AHK"],"kind":"software","website":"https://www.autohotkey.com/","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.","license":"GPL-2.0","lifecycle":"active","example":false,"features":[{"name":"Unchanged v1-to-v2 scripts","status":"limited","detail":"The migration guide documents substantial syntax and library changes; old scripts require review.","useCase":"Desktop automation and text expansion","platforms":["Windows"],"region":"Operating-system, application and permission requirements apply","evidence":[{"url":"https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/v2-changes.htm","locator":"Legacy syntax removal and function-style changes","retrievedAt":"2026-10-07T05:12:39Z","kind":"vendor"}]}],"alternatives":[],"slug":"autohotkey","draftAlternatives":[{"targetSlug":"autoit","status":"limited","detail":"Suitable for Windows keyboard-driven automation; script syntax, libraries and control behavior differ.","useCase":"Desktop automation","platforms":["Windows"],"region":"Operating-system, application and permission requirements apply","evidence":[{"url":"https://github.com/AutoHotkey/AutoHotkey/blob/alpha/README.md","locator":"Custom scripting; Windows builds; v1 no longer maintained","retrievedAt":"2026-10-07T05:10:26Z","kind":"vendor"},{"url":"https://www.autoitscript.com/site/autoit/","locator":"Windows BASIC-like automation; controls, GUIs, COM and AutoItX","retrievedAt":"2026-10-07T05:10:14Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/AutoHotkey/AutoHotkey/blob/alpha/README.md","locator":"Custom scripting; Windows builds; v1 no longer maintained","retrievedAt":"2026-10-07T05:10:26Z","kind":"vendor"},{"url":"https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/v2-changes.htm","locator":"Legacy syntax removal and function-style changes","retrievedAt":"2026-10-07T05:12:39Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/AutoHotkey/AutoHotkey/blob/alpha/license.txt","locator":"GPL version 2","retrievedAt":"2026-10-07T05:11:00Z","id":"ahk-license","title":"AutoHotkey license","kind":"vendor"},{"url":"https://github.com/AutoHotkey/AutoHotkey/blob/alpha/README.md","locator":"Custom scripting; Windows builds; v1 no longer maintained","retrievedAt":"2026-10-07T05:10:26Z","id":"ahk","title":"AutoHotkey README","kind":"vendor"},{"url":"https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/v2-changes.htm","locator":"Legacy syntax removal and function-style changes","retrievedAt":"2026-10-07T05:12:39Z","id":"ahk-migration","title":"AutoHotkey v1-to-v2 changes","kind":"vendor"},{"url":"https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/Hotkeys.htm","locator":"Keyboard/mouse shortcuts, modifiers and actions","retrievedAt":"2026-10-07T05:11:25Z","id":"ahk-hotkeys","title":"AutoHotkey v2 hotkeys","kind":"vendor"},{"url":"https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/Hotstrings.htm","locator":"Abbreviation replacement and scripted actions; ending characters","retrievedAt":"2026-10-07T05:11:25Z","id":"ahk-strings","title":"AutoHotkey v2 hotstrings","kind":"vendor"},{"url":"https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/lib/_HotIf.htm","locator":"Conditional hotkeys/hotstrings and native behavior when inactive","retrievedAt":"2026-10-07T05:11:59Z","id":"ahk-context","title":"AutoHotkey context-sensitive triggers","kind":"vendor"},{"url":"https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/Scripts.htm","locator":"Plain-text scripts; startup execution; event persistence; syntax validation","retrievedAt":"2026-10-07T05:11:59Z","id":"ahk-scripts","title":"AutoHotkey scripts","kind":"vendor"},{"url":"https://www.autoitscript.com/site/autoit/","locator":"Windows BASIC-like automation; controls, GUIs, COM and AutoItX","retrievedAt":"2026-10-07T05:10:14Z","id":"autoit","title":"AutoIt","kind":"vendor"}],"overviewCitations":["ahk","ahk-migration"],"licenseCitations":["ahk-license"],"sections":[{"id":"triggers","heading":"Hotkeys and hotstrings","paragraphs":[{"id":"triggers-detail","content":[{"text":"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."}],"citations":["ahk-hotkeys","ahk-strings"]}]},{"id":"context","heading":"Application-sensitive behavior","paragraphs":[{"id":"context-detail","content":[{"text":"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."}],"citations":["ahk-context"]}]},{"id":"execution","heading":"Script execution","paragraphs":[{"id":"execution-detail","content":[{"text":"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."}],"citations":["ahk-scripts"]}]},{"id":"migration","heading":"Version migration","paragraphs":[{"id":"migration-detail","content":[{"text":"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."}],"citations":["ahk-migration"]}]},{"id":"license","heading":"Licensing and platform","paragraphs":[{"id":"license-detail","content":[{"text":"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."}],"citations":["ahk-license","ahk"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"AutoHotkey can substitute for "},{"text":"AutoIt","targetSlug":"autoit"},{"text":" 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."}],"citations":["ahk","ahk-hotkeys","ahk-strings","autoit"]}]}]},"id":"Q1294","revision":1342,"updatedAt":"2026-10-14T02:29:49Z","sourceUrl":"https://substitutefor.net/entities/Q1294?revision=1342"}}