Want a keypress to launch a task, replace a phrase, or fill in repeated text? AutoHotkey lets you define keyboard and mouse hotkeys and write scripts that automate actions in Windows programs.
What can a hotkey trigger?
A hotkey links a keyboard combination or mouse input to an action in a script. For example, a shortcut can open a program or start a repeated sequence of actions. AutoHotkey can also remap keys or mouse buttons, so an input produces a different one.
How do hotstrings expand text?
Hotstrings replace a typed abbreviation with a longer phrase or text. They suit repeated replies, standard form details, and other wording that would otherwise need to be typed again. A script can combine hotstrings with hotkeys, so both text expansion and shortcut-triggered actions live in the same automation workflow.
What can an AutoHotkey script contain?
Scripts range from short macros to programs with more involved logic. Scripts can be written step by step, with objects and classes, or as simple command lists. The language includes examples for working with the clipboard, showing a small graphical interface, and using arrays or objects.
How do people use scripts for repetitive work?
A form-filling script can enter recurring details, while an auto-clicking script can repeat mouse actions. Macros can combine input steps into one triggered routine. To make one, define the hotkey or hotstring and write the associated commands in a script; running it lets AutoHotkey respond to those triggers while you work in Windows.
Pros
- Creates keyboard and mouse hotkeys and remaps keys or buttons
- Supports text-expansion rules similar to autocorrect
- Scripts can handle form filling, clicking, and macros
- Includes syntax for clipboard tasks, small GUIs, and arrays
System requirements: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11 · 32-bit and 64-bit
Can AutoHotkey remap a mouse button as well as a key?
Yes. It supports remapping mouse buttons and keyboard keys.
What is the difference between a hotkey and a hotstring?
A hotkey runs an action when its assigned input is pressed. A hotstring expands typed text into a replacement.
Can a script interact with the clipboard?
Yes. AutoHotkey supports clipboard-related scripting, and clipboard tasks are among its example workflows.