digplanet beta 1: Athena
Share digplanet:

Agriculture

Applied sciences

Arts

Belief

Business

Chronology

Culture

Education

Environment

Geography

Health

History

Humanities

Language

Law

Life

Mathematics

Nature

People

Politics

Science

Society

Technology

AutoHotkey
AutoHotkey logo.png
Developer(s) Chris Mallett, Steve Gray
Stable release 1.1.16.05 / 28 September 2014; 58 days ago (2014-09-28)[1]
Preview release 2.0-a055 / September 27, 2014; 59 days ago (2014-09-27)
Operating system Microsoft Windows
Type Scripting language Automation GUI utility
License GPL
Website ahkscript.org

AutoHotkey is a free, open-source macro-creation and automation software utility that allows users to automate repetitive tasks in Microsoft Windows. Any application user interface can be modified by AutoHotkey (for example, overriding the default Windows control key commands with their Emacs equivalents).[2] It is driven by a custom scripting language that is aimed specifically at providing keyboard shortcuts or hotkeys.

Features[edit]

AutoHotkey scripts can be used to launch programs, open documents, send keystrokes and send mouse clicks and movements.[3] AutoHotkey scripts can also assign, retrieve, and manipulate variables, run loops and manipulate windows, files, and folders. These commands can be triggered by a hotkey, such as a script that would open an internet browser whenever the user presses Ctrl+Alt+i on the keyboard. Keyboard keys can also be remapped or disabled, such that pressing the letter q, for example, might result in the computer receiving a letter r, or nothing at all.[4] AutoHotkey also allows for 'hotstrings' that will automatically replace certain text as it is typed; the most typical use for hotstrings is expanding abbreviations, such as assigning the string "btw" to send the text "by the way" when typed, or the text "%o" to send "percentage of".[5]

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 an executable file that can be run on other computers that do not have AutoHotkey installed. The source code is in C++ and can be compiled with Visual Studio Express.

Memory access through pointers is allowed just as in C.[6]

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.
  • Automating repetitive tasks in online games (often in violation of said games' terms of service)
  • Filling out contest and freebie forms automatically (i.e., it can type in your name, address, etc. automatically)
  • Quick code testing before implementing in another (more time consuming) programming language.
  • AutoHotkey has even been used by doctors in the radiology world.[7]

History[edit]

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

In 2010, AutoHotKey v1.1 (originally called AutoHotkey_L) became the platform for ongoing development of AutoHotkey.[13] Another port of the program is AutoHotkey.dll.[citation needed]

Examples[edit]

This script swaps control and alt keys.

LCtrl::Alt
LAlt::Ctrl

The following script will allow a user to search for a particular word or phrase using Google. After copying text from any application to the Clipboard, pressing the configurable hotkey Win+g will open the user's default web browser and perform the search.

#g:: ; Win+g
   Run http://www.google.com/search?q=%clipboard%
Return

The following is an example of the script required to create the hotstring "afaik," which is automatically replaced by "as far as I know":

::afaik::as far as I know

The following is an example of a simple function in AutoHotkey. When a URL is copied to the Clipboard, the hotkey Alt+x will check the URL for any/all parentheses and replace them with alternate characters before pasting the URL from the Clipboard:

!x:: ; Alt+x
   URLReplace()
   Send ^v ; Ctrl+v
Return
 
URLReplace() {
   StringReplace, Clipboard, Clipboard, (, `%28, All
   StringReplace, Clipboard, Clipboard, ), `%29, All
}

In this example, once the contents of a user name or IP Address link have been copied from anywhere on Wikipedia's site to the Clipboard (using Firefox), the following script allows a user to perform the function CopyUser on the Clipboard's contents and save it to a variable designated by either the hotkey Ctrl+ Shift+W or the hotkey Ctrl+ Shift+E. The hotkey Ctrl+ Shift+R utilizes the resultant variables to produce a revert edits summary.

^+w::last := CopyUser() ; Ctrl+Shift+w
^+e::edit := CopyUser() ; Ctrl+Shift+e
 
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
}
 
; Ctrl+Shift+r
^+r::Send revert edits by [[Special:Contributions/%edit%|%edit%]] to last version by %last%

More examples of what can be done with AutoHotkey can be found in the Scripts and Functions section of AutoHotkey's online forum.

Community[edit]

The online community forum for AutoHotkey has around 27,300 registered users and around 482,000 posts as of January 2012.[14]

The online chat room for AutoHotkey is located on Freenode IRC with an average of 40 connected users as of November 2009.[15]

The administration of the official site may have changed.[16]

User-contributed features[edit]

There are extensions/interops/inline script libraries available for usage with/from other programming languages:

Other major plugin enable support for:

See also[edit]

References[edit]

  1. ^ "AutoHotkey Downloads". 
  2. ^ Contact Erica Sadun: Comment (2005-08-19). "Ericasadun 2005 Life Hacker". Lifehacker.com. Retrieved 2011-12-02. 
  3. ^ "AutoHotkey Tutorial: Macro and Hotkey Creation". Autohotkey.com. Retrieved 2011-12-02. 
  4. ^ "Remapping Keys and Buttons". Autohotkey.com. Retrieved 2011-12-02. 
  5. ^ "Hotstrings and Auto-replace (similar to AutoText and AutoCorrect)". Autohotkey.com. 2005-01-09. Retrieved 2011-12-02. 
  6. ^ "AutoHotkey Changes and New Features, v1.0.47 - June 19, 2007". Autohotkey.com. Retrieved 2011-12-02. 
  7. ^ Tarik K. Alkasab. "Tools to Simplify Follow-up of Patient Outcomes." SIIM News, Fall 2008 issue.
  8. ^ "AutoHotkey Changelog for Years 2003-2004". Autohotkey.com. Retrieved 2011-12-02. 
  9. ^ "Author Chris Mallett's post on the AutoHotkey Forums". Autohotkey.com. Retrieved 2011-12-02. 
  10. ^ "An AutoIt / AutoHotkey nonfunctional comparison". Paperlined.org. Retrieved 2011-12-02. 
  11. ^ "Author Chris Mallett's post on the AutoHotkey Forums". Autohotkey.com. Retrieved 2011-12-02. 
  12. ^ "Licensing Opinions - AutoIt Forums". Autoitscript.com. Retrieved 2011-12-02. 
  13. ^ "Forum post by Chris, announcing AutoHotkey_L now main platform". Autohotkey.com. Retrieved 2011-12-02. 
  14. ^ "AutoHotkey Community Forum Page". Autohotkey.com. Retrieved 2011-12-02. 
  15. ^ "Getting connected to AutoHotkey's IRC Chat". Autohotkey.com. Retrieved 2011-12-02. 
  16. ^ "The future of AutoHotkey.com". Chris. 2012-01-26. Retrieved 2012-02-01. 
  17. ^ .NET Framework
  18. ^ LibLua
  19. ^ Lisp on win32
  20. ^ Embeddable Common Lisp
  21. ^ Windows Scripting Host
  22. ^ Embedded machine code
  23. ^ Function Hooks
  24. ^ COM Wrappers
  25. ^ Console Interaction (LibCon)
  26. ^ Dynamic Code Generation
  27. ^ Human Interface Device(HID) Support
  28. ^ Internet Explorer Automation
  29. ^ SmartGUI Creator
  30. ^ Sparrow AHK Web Server
  31. ^ Bit Wizardry
  32. ^ Windows Event Hooks

External links[edit]


Original courtesy of Wikipedia: http://en.wikipedia.org/wiki/AutoHotkey — Please support Wikipedia.
This page uses Creative Commons Licensed content from Wikipedia. A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia.
37646 videos foundNext > 

Autohotkey Quick Overview

http://www.ahkscript.org (www.autohotkey.com is no longer updated!) AHK is a program that enhances productivity, regardless of what applications you use. Her...

AutoHotKey for beginners!

Thanks for watching, don't forget to rate comment and subscribe :)! LINKS AHKDictionary: http://www.autohotkey.com/docs/commands.htm Hotkey notations: http:/...

Using AutoHotKey To Automate Mouse Clicks And Keystrokes

Using AutoHotKey To Automate Mouse Clicks And Keystrokes.

AutoHotkey #8: Making GUIs (example with notepad)

Tutorial on making Guis with AutoHotkey.

Using AutoHotKey For Windows Macro Recording

Using AutoHotKey For Windows Macro Recording.

Как пользоваться AutoHotkey

Наш Форум : http://game-torrent.vv.si/ Код: Numpad1:: Send,Ваш текст {Space} Numpad1:: Send,Ваш текст {Enter} AutoHotKey. http://www.autohotkey.com/ http://r...

AutoHotKey for knowledge workers

The wonderful free software tool AutoHotKey can help you manage your personal information flow. This episode shows you how. Download the script here: http://...

World of Warcraft + autohotkey macros

Use autohotkey to bind multiple attacks in sequence to one mouse button, I use the back button in this tutorial. Great for Ret paladins or monks and many oth...

League of Legends Chat Shortcuts using Autohotkey | Tutorial #1

This video explains how to create chat shortcuts to use inside/outside any game. The method is explained using the software Autohotkey, which is free to down...

AutoHotKey Macro - Spam multiple keys with one keypress

Usefull for those games where you have to use the spell that comes off cooldown first, like in WoW or to use few spells at once. Script available here: http:...

37646 videos foundNext > 

1903 news items

Ghacks Technology News

Ghacks Technology News
Wed, 24 Sep 2014 07:07:00 -0700

Ac-tivAid is a free tools collection for the Windows operating system that has been created to improve certain features and operations of the system. Before we look at that, it needs to be noted that the developer homepage is entirely in German. The ...
 
GameDev.net
Fri, 21 Nov 2014 11:34:34 -0800

Let me clarify: in most of the languages I know (C#, Java, PHP, AutoHotkey, even my limited knowledge of C++) we have classes. And while I know not everyone is a big fan of object-oriented programming, I personally find it makes things a heck of a lot ...
 
Lifehacker Australia
Thu, 06 Feb 2014 08:15:45 -0800

I'm a real stickler for organising my files on my computer. Every file type has its right place to be within my directory structure. I regularly cut and paste files from my download/USB/wherever folders, and then paste them into the right location ...

The Guardian

The Guardian
Thu, 06 Nov 2014 05:20:42 -0800

Finally, there's AutoHotKey. Not only can it remap keys, it can assign macro programs to them. You can use AutoHotKey to create keyboard shortcuts that open programs and documents, repeat a series of actions, expand abbreviations, paste in bits of text ...
 
mydigitalfc.com
Mon, 10 Nov 2014 09:42:05 -0800

AutoHotkey (www.autohotkey.com) is a free, open-source utility that lets you automate your workings by triggering predefined keystrokes and mouse clicks. You can also use AutoHotkey to type out short phrases within a document or mail and save time as ...
 
AD HOC NEWS
Wed, 05 Nov 2014 13:31:45 -0800

AutoHotKey 1.1.16.05 (Update). 05.11.14 | 22:30 Uhr | 11 mal gelesen | So gefunden auf heise.de Belegt (Funktions-)Tasten mit beliebigen Befehlen, zeichnet Makros auf, kompiliert sie auf Wunsch in ausführbare Programme, ersetzt Abkürzungen gegen ...
 
V3.co.uk
Thu, 24 Mar 2011 04:46:14 -0700

AutoHotKey enables you to create your own key-based macros or setup a hotkey to run a particular application. You could assign your software tools to keyboard shortcuts or even setup words to expand from abbreviations that you enter when you write ...
 
Computer Totaal
Tue, 25 Nov 2014 23:03:26 -0800

Niet met AutoHotkey! Hiermee creëer je complexe muis- en toetsenbordmacro's die je zowat overal in Windows kunt inzetten. Dat doe je met een specifieke scripttaal of met een ingebouwde macrorecorder. Deze scripttaal is erg krachtig en ondersteunt onder ...
Loading

Oops, we seem to be having trouble contacting Twitter

Support Wikipedia

A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia. Please add your support for Wikipedia!

Searchlight Group

Digplanet also receives support from Searchlight Group. Visit Searchlight