AutoHotkey: Automation and Hotkeys for Joystick/Mouse/Keyboard


Chris Mallett

Define abbreviations that expand as you type them (auto-replace). In addition, such
"magic words" can perform a series of scripted actions whenever you type them. See for details.

Use a joystick as a mouse with this customizable script:

Perform simple text-to-HTML conversion.

Scan code prefix keys are now possible, e.g. SC118 & Enter::MsgBox You pressed Enter while
holding down the key with scan code 118.

Create windows to display progress bars or GIF/JPG/BMP images. One example of this is the
following sample script that allows you to raise and lower Master and Wave volume with
hotkeys. The new volume levels are then displayed via on-screen progress bars:

Customize your keyboard, joystick, and mouse with an open source scripting language that
is backward compatible with AutoIt v2. It includes a quick-start tutorial, an automatic
script writer (macro recorder) that records your keystrokes and mouse clicks, and a
comprehensive help file filled with working examples.

In addition to its automation features described below, AutoHotkey excels at hotkeys, able
to make virtually *any* mouse/joystick button, keyboard key, or combination into a hotkey.
It can also individually disable or override Windows' own shortcut keys, such as Win+E and
Win+R. It may also help alleviate RSI; for example, it can create substitutes for Alt-Tab
using keys, mouse wheel, or buttons.

- Retrieve or change the volume, mute, and other settings of any soundcard.
- Remap keys and mouse/joystick buttons.
- Send keystrokes and mouse clicks to any window (without even needing to activate it).
- Launch programs, shortcuts, URLs, and documents.
- Activate, hide, close, or resize any window.
- Automate game actions by detecting pixel colors.
- Make any window transparent and/or always-on-top.
- Create custom tray icon menus.
- Monitor your system (e.g. close unwanted windows the moment they appear).
- Retrieve and change the clipboard's contents, even files copied from the Explorer.
- Perform any operation upon a set of files and folders that match a wildcard pattern.
- Read, write, and parse text files more easily than in most other languages.
- Work with the registry and INI files using the included interface commands.
- Display dialog boxes to interact with the user.
- Convert any script into an EXE that can be run on any computer.

Some of the easiest keys to reach on the keyboard are also the least often used. Make
these keys do something useful! For example, if you rarely use the right ALT key, put it
to work as a favorite hotkey.

Don't be limited to using only CTRL, ALT, SHIFT, and WIN as modifiers; you can combine any
two keys or mouse buttons to form a custom hotkey. For example, you can hold down Numpad0
and press Numpad1 to launch a hotkey; or hold down CapsLock and press another key, or
click a mouse button.

Make a keyboard key become a mouse button, or have an action repeated continuously while
you're holding down a key or mouse button.

Make your hotkeys context-sensitive: They can perform a different action depending on
which type of window is currently active.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question