background preloader

AutoHotKey, AHk

Facebook Twitter

AutoHotkey: macro and automation Windows scripting language. Versions and forks of AutoHotkey - Scripts and Functions - AutoHotkey Community. AutoHotkey [Installer] [Portable] [additional downloads] Latest stable version of AutoHotkey 1.0 (aka "AHK Classic"), developed by Chris Mallett (Chris) from 2003 to 2009.

Versions and forks of AutoHotkey - Scripts and Functions - AutoHotkey Community Webchat client. Attenzione. AHK Command Picker - Home. Grab the Tool. AhkCommandPicker Attenzione.

Function Libraries, AHK

AutoHotKey, v.2. Transform autohotkey from [keyboard, text-shortcuts-mouse-joy-registry control] to [3d button icons control] on desktop. - AutoHotkey Community. AutoGUI - GUI Designer and Script Editor. Simple Beginner's Tutorial, AHK. Attenction. AutoHotkey Key Syntax. By Xah Lee.

AutoHotkey Key Syntax

Date: . Last updated: . This page is a complete list of key notations for AutoHotkey. See also: Ctrl, Alt, Shift, Win Logo Keys Here's the basic syntax for modifier keys when used together with another key. Examples: ! To have a combination of modifier keys, just combine them together, like this: F6::Run Notepad ^F6::Run Notepad ^! More Modifier Keys Here's fully speltout variant syntax of the modifer keys. Notes: There is no generic Windows key because the OS does not support it.If your script define actions for ⇧ Shift, Alt, Control, they fire upon release of the key. Combination Key Syntax For simple modifier keys such as {Alt, Ctrl, ⇧ Shift, Win Logo}, the syntax for pressing them together is just combining the notation.

Example of key combination on the right side: RControl::Send ^! Other modifier keys combination on the left side needs to use &. AppsKey & n::Run Notepad Example of key combination/sequence on the left and/or right side: AutoHotkey Expression Examples: "" %% () and all that. LESSON #1:The only place to use %x% is where a literal string NOT enclosed in double-quotes is expected.

AutoHotkey Expression Examples: "" %% () and all that

Otherwise, don't use %% around a variable name. Notice in the following examples that unquoted literal strings are expected. ( = assigns unquoted literal strings ) The run function expects an unquoted string, so we use %%, otherwise notepad would try to open a file named 'MyDocument'. In the first case above, the run function is actually accepting an unquoted string which happens to begin and end with a double quote character. v = v := "" /****************************************************************************** E:Use the colon-equal operator (:=) for storing numbers and quoted strings NOTE: All variables including numbers are stored as character strings. /****************************************************************************** F: equal sign operator (=) to assign unquoted literal strings To include variable ABC instead of literal string "ABC", use %ABC%

Attenction. AutoHotkey_L New Features. This document describes features added in the AutoHotkey_L branch of AutoHotkey development, now simply known as "AutoHotkey 1.1".

AutoHotkey_L New Features

Caution: This document has been neglected in recent years and may be missing some of the more recent changes. Error Handling Many commands support using try/catch instead of ErrorLevel for error handling. For example: Exceptions/Catch an exception thrown in a nested call. Exceptions/Catch an exception thrown in a nested call You are encouraged to solve this task according to the task description, using any language you may know.

Exceptions/Catch an exception thrown in a nested call

Show how to create a user-defined exception and show how to catch an exception raised from several nested calls away. Create two user-defined exceptions, U0 and U1. Have function foo call function bar twice. Have function bar call function baz. Arrange for function baz to raise, or throw exception U0 on its first call, then exception U1 on its second. Attenction.

Syntax, AHK

ABC Knowledge. ABC, AHK. Attenction. Variables & Expressions, AHK. Functions, AHK. Keep Key Pressed, AHK. Virtual Key Codes, ScanCodes, SCnn VK, AHK. AutoHotKeys, Picked from Pearlers. Unofficial AutoHotkey FAQ. Note July 2013 - Now also available as Gist Note: this page comes from the AutoHotkey Wiki which has been removed.

Unofficial AutoHotkey FAQ

It hopefully serves a purpose until the official faq can be edited in the new documentation setup. It is a good idea to check the official documentation to see if a new FAQ is available - April 2012 This page is meant to list and categorize important forum threads, which answer the most frequently asked questions concerning AutoHotkey. It is a community effort to supplement the official FAQ page. See also: Official AHK FAQ Questions on how best to learn AHK and common problems with your first script. Tutorials.

AHK & javascript

Python & AHK. AHK & Linux. AutoHotKey vs. AutoIt (The old skirmish) Manage Window, AHK. Manage Strings, AHK. Manage Controls, AHK. Logical [Operations & Check Routines] Loop Commands, AHK. Subroutines & Execution Flow, AHK. HotKey Commands, AHK. Send. Click. Clicks a mouse button at the specified coordinates.


It can also hold down a mouse button, turn the mouse wheel, or move the mouse. Here are examples of common usages (all commas are optional): Zero or more of the following items can follow the word Click. Separate each item from the next with at least one space, tab, and/or comma. The items can appear in any order except ClickCount, which must occur somewhere to the right of the coordinates (if coordinates are present). X, Y: The x/y coordinates to which the mouse cursor is moved prior to clicking.

Button Name: Left (default), Right, Middle (or just the first letter of each of these); or the fourth or fifth mouse button (X1 or X2), which are supported on Windows 2000/XP or later. Mouse Wheel (this has no effect on Windows 9x): Specify WheelUp or WU to turn the wheel upward (away from you); specify WheelDown or WD to turn the wheel downward (toward you). Loop 5 Click WheelUp Remarks Click uses the sending method set by SendMode. Related.

Square Brackets issue, AHK

Expressions: Parenthesis issue, AHK. Hide/Show window, Scripts. Attenction. Objects & Classes, AHK. Message Hooking, AHK. Raw Input API & HID, AutoHotKey AHK. Escape Characters, AHK. NumGet. Returns the binary number stored at the specified address+offset.


Number := NumGet(VarOrAddress [, Offset = 0][, Type = "UPtr"]) Parameters VarOrAddress A memory address or variable. If VarOrAddress is a variable such as MyVar, the address of the variable's string buffer is used. Do not pass a variable reference if the variable contains the target address; in that case, pass an expression such as MyVar+0. Offset An offset - in bytes - which is added to VarOrAddress to determine the target address. Type. Understanding NumGet. - Ask for Help - AutoHotkey Community. Useful AutoHotkey Scripts.

Good Scripts, AHK

Editing/coding Tools, SciTE4AutoHotkey. GUIs, AHK. Compile/Decompile, AHK. Win 10 virtual Desktop & AHK. Attenction. Performance Optimization of script code, AHK. BATCHing, AHK. Hyperlink. CMD prompt, AHK Related. Programmi Utili, Good Softwares. Hyperlink. AutoHotKey.