AutoHotkey

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 providing keyboard shortcuts 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 manipulate variables, 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 an internet browser whenever the user presses ctrl-alt-i. Keys can also be remapped or disabled, such that pressing the letter q, for example, might result in the computer receiving an r, 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 from QWERTY 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 or joystick.
*Opening programs, documents, and websites with simple keystrokes.
*Adding a signature to e-mail, message boards, etc.
*Monitoring a system and automatically closing unwanted programs.
*Scheduling an automatic reminder, system scan, or backup.

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%Return

AutoHotkey 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] on freenode


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • AutoHotkey — Basisdaten Entwickler Chris Mallett Aktuelle Version 1.0.48.05 (25. September 2009) …   Deutsch Wikipedia

  • Autohotkey — Basisdaten Entwickler: Chris Mallett Aktuelle Version: 1.0.48.00 ( …   Deutsch Wikipedia

  • AutoHotkey — Разработчик Chris Mallett Операционная система Microsoft Windows Последняя версия 1.1.08.01 (8 августа 2012) Лицензия …   Википедия

  • AutoHotkey — Développeur Chris Mallett Dernière version 1.0.48.05 (25 09 2009) [ …   Wikipédia en Français

  • Comparison of programming languages (syntax) — Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations …   Wikipedia

  • AutoIt — Développeur Jonathan Bennett et le groupe AutoIt Dernière version 3 …   Wikipédia en Français

  • Windows CE — Microsoft Windows CE Company / developer Microsoft Programmed in C[1] …   Wikipedia

  • Comparison of programming languages — Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations …   Wikipedia

  • Liste der Dateiendungen/A — In dieser Liste sind übliche Dateinamenserweiterungen aufgelistet, die in einigen Betriebssystemen (wie zum Beispiel Microsoft Windows) zur Unterscheidung von Dateiformaten verwendet werden. In anderen Betriebssystemen erfolgt die… …   Deutsch Wikipedia

  • Liste von Hallo-Welt-Programmen/Programmiersprachen — Dies ist eine Liste von Hallo Welt Programmen für gebräuchliche Programmiersprachen. Weitere Beispiele für grafische Benutzeroberflächen, Web Technologien, exotische Programmiersprachen und Textauszeichnungssprachen sind unter Liste von Hallo… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”