- AutoHotkey
Infobox_Software
name = AutoHotkey
logo =
caption =
developer = Chris Mallett
latest_release_version = 1.0.47.06
latest_release_date =Mar 9 ,2008
operating_system =Microsoft Windows
genre = Automation GUI utility
license = GPL
website = http://www.autohotkey.com/AutoHotkey is a free, open source macro-creation and
automation software utility which allows users to automate repetitive tasks and modify the Windows user interface. It is driven by a custom scripting language that is aimed specifically at providingkeyboard shortcut s or hotkeys, and is intended to be backwards compatible with the AutoIt2 language.Many simple and repetitive tasks can be automated with this system. Scripts can launch programs, open documents, send
keystrokes and mouse clicks, assign, retrieve, and manipulatevariable s, run loops, and manipulate windows, files, and folders. These scripts are often triggered through the use of hotkeys. For example, a script might have code that would open aninternet browser whenever the user presses ctrl-alt-i. Keys can also be remapped or disabled, such that pressing the letterq , for example, might result in thecomputer receiving anr , or nothing at all. AutoHotkey also allows for 'hotstrings' to be replaced as they are typed, for example, turning "btw" into "by the way".More complex tasks can be achieved with custom data entry forms (GUI windows), working with the system registry, or using a window's own API by manipulating certain DLLs. The scripts can be compiled into an
executable file that can be run on other computers that do not have AutoHotkey installed.Common AutoHotkey tasks:
*Remapping the keyboard, such as fromQWERTY to Dvorak or other alternative keyboard layouts.
*Using shortcuts to fill in frequently-used filenames or other phrases.
*Controlling the mouse cursor with a keyboard orjoystick .
*Opening programs, documents, and websites with simple keystrokes.
*Adding asignature toe-mail , message boards, etc.
*Monitoring a system and automatically closing unwanted programs.
*Scheduling an automatic reminder, system scan, orbackup .Examples
The following scripts allow the user to search for a particular word or phrase using
Google . After selecting the text from any application and copying it to the clipboard, pressing the configurable hotkey will open the default browser and perform the search.; Hotkey is Win + g
#g:: Run, http://www.google.com/search?q=%Clipboard%ReturnAutoHotkey is often used to automate typing. For example the following script allows a using Firefox to right click on a user name or IP link and copy its value into variables with the hotkeys CTRL-SHIFT-W and CTRL-SHIFT-E. Then with the hotkey CTRL-SHIFT-R, the program uses the variables to produce an edit summary.
^+w::last := CopyUser( )^+e::edit := CopyUser( ) CopyUser( ){ Clipboard = StringReplace, Clipboard, Clipboard, http://en.wikipedia.org/ StringReplace, Clipboard, Clipboard, wiki/ StringReplace, Clipboard, Clipboard, w/index.php?title= StringReplace, Clipboard, Clipboard, Special:Contributions&target= StringReplace, Clipboard, Clipboard, User: StringReplace, Clipboard, Clipboard, &action=edit StringReplace, Clipboard, Clipboard, _, %A_Space%, All return, Clipboard}
^+r::Send revert edits by to last version by %last%
There are many more examples of what can be done with AutoHotkey in the [http://www.autohotkey.com/forum/viewforum.php?f=2 scripts and functions] section of their forum. Many of these scripts have also have been sorted into a [http://www.autohotkey.com/wiki/index.php?title=Script_Listing catalogue] based on the purpose of the script.
See also
*
AutoIt
*Automator (for Macintosh)
*Bookmarklet
*iMacros for Firefox
*Visual Basic External links
* [http://www.autohotkey.com/ Official site]
* [http://autohotkey.com/docs Documentation]
* [http://autohotkey.net/ AutoHotkey.net] - a repository of user projects and [http://www.autohotkey.net/#archives archives] of major releases
* [http://www.autohotkey.com/docs/scripts/ Script Showcase] - collection of exemplary scripts
* Community [http://www.autohotkey.com/forum/ forum] and IRC [irc://irc.freenode.net/ahk #ahk] onfreenode
Wikimedia Foundation. 2010.