AutoHotkey

Last updated
AutoHotkey
Developer(s) Chris Mallett, Steve Gray
Initial releaseNovember 10, 2003;20 years ago (2003-11-10) (Chris Mallet) [1]
July 18, 2008;16 years ago (2008-07-18) (Steve Gray) [2] [3]
Stable release
2.0.18 [4]   OOjs UI icon edit-ltr-progressive.svg / 6 July 2024;3 months ago (6 July 2024)
Repository
Operating system Microsoft Windows
Type Scripting language Automation GUI utility
License GPLv2 [5]
Website www.autohotkey.com OOjs UI icon edit-ltr-progressive.svg

AutoHotkey is a free and open-source custom scripting language for Microsoft Windows, primarily designed to provide easy keyboard shortcuts or hotkeys, fast macro-creation and software automation to allow users of most computer skill levels to automate repetitive tasks in any Windows application. It can easily extend or modify user interfaces (for example, overriding the default Windows control key commands with their Emacs equivalents). [6] The installation package includes an extensive help file; web-based documentation is also available. [7]

Contents

Features

AutoHotkey scripts can be used to launch programs, open documents, and emulate keystrokes or mouse clicks and movements. [8] They can also assign, retrieve, and manipulate variables, run loops, and manipulate windows, files, and folders. They can be triggered by a hotkey, such as a script that opens an internet browser when the user presses Ctrl+Alt+I on the keyboard. Keyboard keys can also be remapped and disabled—for example, so that pressing Ctrl+M produces an em dash in the active window. [9] AutoHotkey also allows "hotstrings" that automatically replace certain text as it is typed, such as assigning the string "btw" to produce the text "by the way", or the text "%o" to produce "percentage of". [10] Scripts can also be set to run automatically at computer startup, with no keyboard action required—for example, for performing file management at a set interval. [11]

More complex tasks can be achieved with custom data entry forms (GUI windows), working with the system registry, or using the Windows API by calling functions from DLLs. The scripts can be compiled into standalone executable files that can be run on other computers without AutoHotkey installed. The C++ source code can be compiled with Visual Studio Express.

AutoHotkey allows memory access through pointers, as in C. [12]

Some uses for AutoHotkey:

History

The first public beta of AutoHotkey was released on November 10, 2003, [1] after author Chris Mallett's proposal to integrate hotkey support into AutoIt v2 failed to generate response from the AutoIt community. [13] [14] Mallett built a new program from scratch basing the syntax on AutoIt v2 and using AutoIt v3 for some commands and the compiler. [15] Later, AutoIt v3 switched from GPL to closed source because of "other projects repeatedly taking AutoIt code" and "setting themselves up as competitors". [16]

In 2010, AutoHotkey v1.1 (originally called AutoHotkey_L) became the platform for ongoing development of AutoHotkey. [17] In late 2012, it became the official branch. [18] Another port of the program is AutoHotkey.dll. [19] A well known fork of the program is AutoHotkey_H, [20] [21] which has its own subforum on the main site. [22]

Version 2

In July 2021, the first AutoHotkey v2 beta was released. [23] [24] The first release candidate was released on November 20, 2022, with the full release of v2.0.0 planned later in the year. [25] On December 20, 2022, version 2.0.0 was officially released. [26] On January 22, 2023, AutoHotkey v2 became the official primary version. AutoHotkey v1.1 became legacy and no new features were implemented, but this version was still supported by the site. [27] On March 16, 2024, the final update of AutoHotkey v1.1 was released. AutoHotkey v1.1 has now reached its end of life. [28]

Examples

The following script searches for a particular word or phrase using Google. After the user copies text from any application to the clipboard, pressing the configurable hotkey ⊞ Win+G opens the user's default web browser and performs the search.

#g::Run"https://www.google.com/search?q=".A_Clipboard

The following script defines a hotstring that enables the user to type afaik in any program and, when followed by an ending character, automatically replace it with "as far as I know":

::afaik::asfarasIknow

User-contributed features

AutoHotKey extensions, interops and inline script libraries are available for use with and from other programming languages, including:

Other major plugins enable support for:

Malware

When AutoHotkey is used to make standalone software for distribution, that software must include the part of AutoHotkey itself that understands and executes AutoHotkey scripts, as it is an interpreted language. Inevitably, some malware has been written using AutoHotkey. [44] When anti-malware products attempt to earmark items of malware that have been programmed using AutoHotkey, they sometimes falsely identify AutoHotkey as the culprit rather than the actual malware.[ citation needed ]

See also

Related Research Articles

<span class="mw-page-title-main">Scroll Lock</span> Computer key

Scroll Lock is a lock key on most IBM-compatible computer keyboards. Depending on the operating system, it may be used for different purposes, and applications may assign functions to the key or change their behavior depending on its toggling state. The key is not frequently used, and therefore some reduced or specialized keyboards lack Scroll Lock altogether.

VBScript is a deprecated programming language for scripting on Microsoft Windows using Component Object Model (COM) based on classic Visual Basic and Active Scripting.

Visual Basic for Applications (VBA) is an implementation of Microsoft's event-driven programming language Visual Basic 6.0 built into most desktop Microsoft Office applications. Although based on pre-.NET Visual Basic, which is no longer supported or updated by Microsoft, the VBA implementation in Office continues to be updated to support new Office features. VBA is used for professional and end-user development due to its perceived ease-of-use, Office's vast installed userbase, and extensive legacy in business.

<span class="mw-page-title-main">Keyboard shortcut</span> Assignments for computer keyboard keys

In computing, a keyboard shortcut is a software-based assignment of an action to one or more keys on a computer keyboard. Most operating systems and applications come with a default set of keyboard shortcuts, some of which may be modified by the user in the settings.

<span class="mw-page-title-main">Quicksilver (software)</span> Utility application for macOS

Quicksilver is a utility app for macOS. Originally developed as proprietary freeware by Nicholas Jitkoff of Blacktree, Inc., it is now an open-source project hosted on GitHub.

ANSI.SYS is a device driver in the DOS family of operating systems that provides extra console functions through ANSI escape sequences. It is partially based upon a subset of the text terminal control standard proposed by the ANSI X3L2 Technical Committee on Codes and Character Sets.

This article provides basic comparisons for notable text editors. More feature details for text editors are available from the Category of text editor features and from the individual products' articles. This article may not be up-to-date or necessarily all-inclusive.

<span class="mw-page-title-main">AutoKey</span>

AutoKey is a free, open-source scripting application for Linux.

<span class="mw-page-title-main">AutoIt</span> Scripting language to automate tasks in Microsoft Windows

AutoIt is a freeware programming language for Microsoft Windows. In its earliest release, it was primarily intended to create automation scripts for Microsoft Windows programs but has since grown to include enhancements in both programming language design and overall functionality.

WinDbg is a multipurpose debugger for the Microsoft Windows computer operating system, distributed by Microsoft. Debugging is the process of finding and resolving errors in a system; in computing it also includes exploring the internal operation of software as a help to development. It can be used to debug user mode applications, device drivers, and the operating system itself in kernel mode.

<span class="mw-page-title-main">Tiling window manager</span> Window manager with non-overlapping frames

In computing, a tiling window manager is a window manager with the organization of the screen often dependant on mathematical formulas to organise the widows into a non-overlapping frame. This is opposed to the more common approach used by stacking window managers, which allow the user to drag widows around, instead of widows snapping into a position. This allows for a different style of organization, although it strays from the traditional desktop metaphor.

Macro Express is a Windows-based application that allows automation of routine functions, such as filling out web forms, opening programs, and performing mouse clicks, by means of a simple, specialized programming language with support for variables, if-then-else logic, loops and other functions.

<span class="mw-page-title-main">Gateway AnyKey</span> Programmable PC keyboard

The Gateway AnyKey is a programmable computer keyboard that was sold exclusively by Gateway 2000, Inc., as an option for some of their desktop computers. Introduced in the spring of 1991, the keyboard was manufactured in at least five known versions and incarnations by Tucson, Arizona–based Maxi Switch, Inc., a subsidiary of the Lite-On Technology Corporation. It was also sold by Maxi Switch themselves, as the ProKey II. The AnyKey proved popular, especially among power users and computer programmers, and soon gained a cult following. The AnyKey is no longer manufactured, Gateway having discontinued it by 1998 at the latest.

Platform Invocation Services, commonly referred to as P/Invoke, is a feature of Common Language Infrastructure implementations, like Microsoft's Common Language Runtime, that enables managed code to call native code.

In Microsoft Windows applications programming, OLE Automation is an inter-process communication mechanism created by Microsoft. It is based on a subset of Component Object Model (COM) that was intended for use by scripting languages – originally Visual Basic – but now is used by several languages on Windows. All automation objects are required to implement the IDispatch interface. It provides an infrastructure whereby applications called automation controllers can access and manipulate shared automation objects that are exported by other applications. It supersedes Dynamic Data Exchange (DDE), an older mechanism for applications to control one another. As with DDE, in OLE Automation the automation controller is the "client" and the application exporting the automation objects is the "server".

<span class="mw-page-title-main">Visual Basic (classic)</span> Microsofts programming language based on BASIC and COM

Visual Basic (VB) before .NET, sometimes referred to as Classic Visual Basic, is a third-generation programming language, based on BASIC, and an integrated development environment (IDE), from Microsoft for Windows known for supporting rapid application development (RAD) of graphical user interface (GUI) applications, event-driven programming and both consumption and development of components via the Component Object Model (COM) technology.

<span class="mw-page-title-main">Auto clicker</span> Program to automate clicking the mouse

An auto clicker is a type of software or macro that can be used to automate the clicking of a mouse on a computer screen element. Some clickers can be triggered to repeat recorded input.

<span class="mw-page-title-main">ZOC (software)</span>

ZOC is a popular computer-based terminal emulator and Telnet software client for the Microsoft Windows and Apple Macintosh macOS operating systems that supports telnet, modem, SSH 1 and 2, ISDN, serial, TAPI, Rlogin and other means of communication. Its terminal emulator supports Xterm emulation with full colors, meta-keys and local printing, VT102, VT220 and several types of ANSI as well as Wyse, TVI, TN3270, and Sun's CDE. It supports full keyboard remapping, scripting in REXX and other languages, and support for named pipes.

<span class="mw-page-title-main">Sublime Text</span> Text editor

Sublime Text is a shareware text and source code editor available for Windows, macOS, and Linux. It natively supports many programming languages and markup languages. Users can customize it with themes and expand its functionality with plugins, typically community-built and maintained under free-software licenses. To facilitate plugins, Sublime Text features a Python API. The editor utilizes minimal interface and contains features for programmers including configurable syntax highlighting, code folding, search-and-replace supporting regular-expressions, terminal output window, and more. It is proprietary software, but a free evaluation version is available.

Keyboard Maestro is a closed-source commercial macOS-based application that allows automation of routine functions, such as navigating running applications, opening documents, typing text, expanding abbreviations, and controlling web applications, by means of a visual programming language with support for variables, styled clipboards, functions and text tokens, if-then-else logic, loops and other functions.

References

  1. 1 2 "AutoHotkey Changelog for Years 2003-2004". Autohotkey.com. Archived from the original on 2011-11-04. Retrieved 2011-12-02.
  2. "Changes & New Features | AutoHotkey". www.autohotkey.com.
  3. "Lexikos/AutoHotkey_L". GitHub.
  4. "Release 2.0.18". 6 July 2024. Retrieved 6 July 2024.
  5. "Software License". AutoHotkey. Retrieved 2022-06-08. GNU GENERAL PUBLIC LICENSE Version 2, June 1991
  6. Contact Erica Sadun: Comment (2005-08-19). "Ericasadun 2005 Life Hacker". Lifehacker.com. Retrieved 2011-12-02.
  7. "Quick Reference | AutoHotkey". www.autohotkey.com.
  8. "AutoHotkey Tutorial: Macro and Hotkey Creation". Autohotkey.com. Retrieved 2011-12-02.
  9. "Remapping Keys and Buttons". Autohotkey.com. Retrieved 2011-12-02.
  10. "Hotstrings and Auto-replace (similar to AutoText and AutoCorrect)". Autohotkey.com. 2005-01-09. Retrieved 2011-12-02.
  11. "Hotkeys, Hotstrings, and Remapping". Autohotkey.com. Retrieved 2018-05-23.
  12. "AutoHotkey Changes and New Features, v1.0.47 - June 19, 2007". Autohotkey.com. Retrieved 2011-12-02.
  13. "Author Chris Mallett's post on the AutoHotkey Forums". Autohotkey.com. Retrieved 2011-12-02.
  14. "An AutoIt / AutoHotkey nonfunctional comparison". Paperlined.org. Archived from the original on 2011-12-08. Retrieved 2011-12-02.
  15. "Author Chris Mallett's post on the AutoHotkey Forums". Autohotkey.com. Retrieved 2011-12-02.
  16. "Licensing Opinions - AutoIt Forums". Autoitscript.com. Retrieved 2011-12-02.
  17. "Forum post by Chris, announcing AutoHotkey_L now main platform". Autohotkey.com. Retrieved 2011-12-02.
  18. "Our History". The AutoHotkey Foundation. 2014-05-26. Retrieved 2016-07-23.
  19. "AutoHotekey.dll Module". github.io. Retrieved 2017-05-13.
  20. "Hotkeyit's AutoHotkey_H fork". GitHub.
  21. "Thqby's AutoHotkey_H fork". GitHub.
  22. "AutoHotkey_H subforum". AutoHotkey.com.
  23. "AutoHotkey v2". AutoHotkey.com. Retrieved 2021-07-28.
  24. "AutoHotkey v2.0-beta.1 - AutoHotkey Community". www.autohotkey.com. Retrieved 2022-01-11.
  25. "AutoHotkey v2.0-rc.1". AutoHotkey.com. Retrieved 2022-11-20.
  26. "AutoHotkey v2.0.0". AutoHotkey.com. Retrieved 2022-12-20.
  27. "AutoHotkey v2 Official Release Announcement". AutoHotkey.com.
  28. "End of Life: v1.1". AutoHotkey.com.
  29. ".NET Framework Interop - Scripts and Functions". AutoHotkey Community.
  30. "AHK + LUA Interop (stdlib), proof of concept - Scripts and Functions". AutoHotkey Community.
  31. "ahklisp: lisp on win32 with cffi, sbcl, and autohotkey - Scripts and Functions". AutoHotkey Community.
  32. "ahkecl : Embedded common lisp in ahk - Scripts and Functions". AutoHotkey Community.
  33. 1 2 "Machine code functions: Bit Wizardry - Scripts and Functions". AutoHotkey Community.
  34. "Embedded Windows Scripting (VBScript & JScript) and COM - Scripts and Functions". AutoHotkey Community.
  35. "function hooks - Suggestions". AutoHotkey Community.
  36. "COM Standard Library - Scripts and Functions". AutoHotkey Community.
  37. "LibCon - AutoHotkey Library For Console Support - Scripts and Functions". AutoHotkey Community.
  38. "LowLevel & dynamic code - Scripts and Functions". AutoHotkey Community.
  39. "Human Interface Device(HID) Support".
  40. "Automation IE7 Navigation and Scripting with Tabs - Scripts and Functions". AutoHotkey Community.
  41. ":: SmartGUI Creator :: - Scripts and Functions". AutoHotkey Community.
  42. "Sparrow: AHK WebServer w/ AHK in HTML support (sources incl) - Scripts and Functions". AutoHotkey Community.
  43. "[tool] WinEventHook Messages - Scripts and Functions". AutoHotkey Community.
  44. Research, Cybereason Nocturnus. "Fauxpersky: CredStealer malware written in AutoHotKey masquerades as Kaspersky Antivirus, spreading through infecting USB drives" . Retrieved 2018-03-29.