background preloader

AutoHotKey

Facebook Twitter

Tutorial: Macro and Hotkey Creation. This brief introduction will help you start scripting your own macros and hotkeys right away.

Tutorial: Macro and Hotkey Creation

Tutorial Contents Creating a script Each script is a plain text file containing commands to be executed by the program (AutoHotkey.exe). A script may also contain hotkeys and hotstrings, or even consist entirely of them. However, in the absence of hotkeys and hotstrings, a script will perform its commands sequentially from top to bottom the moment it is launched. AutoHotKey. Video Software Review AutoHotKey Synopsis AutoHotKey (AHK) is a quick and simple program that automates common tasks on your PC.

AutoHotKey

Poker players have written a multitude of various scripts for this powerful tool, allowing you to create buddy lists, macros, even open tables with the click of a button and change everything about the way you play poker. The Beginner’s Guide to Using an AutoHotkey Script. AutoHotkey scripts are a great way to customize your computer, but may seem daunting at first.

The Beginner’s Guide to Using an AutoHotkey Script

Don’t worry – getting started is much easier than it looks! Read on to see. Turn Any Action into a Keyboard Shortcut. 10 Ways to Use AutoHotKey to Rock Your Keyboard. How to Save Time by Automating Tedious Tasks with AutoHotkey. Have you ever needed to perform the same mindless task over and over on your PC?

How to Save Time by Automating Tedious Tasks with AutoHotkey

Instead of wasting hours clicking buttons and hitting keys, this is the perfect time to use your AutoHotkey skills to make your PC do the work for you. Note: This particular example is a real one that I used earlier today to save a small amount of time, but these are techniques that I’ve used many times over the years to literally save myself days worth of time. The Scenario I was trying to go through and clean out a bunch of incorrect broadcast messages in our email newsletter account, when I realized that their interface required me to manually click the Delete button and then confirm it on every single message—we’re talking about 300 incorrect messages that needed to be deleted.

To make matters worse, the interface is extremely slow, which means I would have spent a good 30-40 minutes just clicking and making my carpal tunnel even worse. Creating the Script Loop 300 { } Loop 300 { click } Send, test{Space} The Best Time-Saving AutoHotkey Tricks You Should Be Using. Scripts and Macros. Table of Contents Introduction The Top of the Script (the Auto-execute Section): This portion executes automatically when the script starts.

Scripts and Macros

FAQ. Language Syntax Common Tasks Hotkeys, Hotstrings, and Remapping Language Syntax When are quotation marks used with commands and their parameters?

FAQ

Double quotes (") have special meaning only within expressions. Tutorial for Newbies. Hotstrings and Auto-replace (similar to AutoText and AutoCorrect) Note: Hotstrings require Windows NT/2000/XP or later.

Hotstrings and Auto-replace (similar to AutoText and AutoCorrect)

Introduction and Simple Examples. Hotkeys (Mouse, Joystick and Keyboard Shortcuts) Table of Contents Introduction and Simple Examples Hotkeys are sometimes referred to as shortcut keys because of their ability to easily trigger an action (such as launching a program or keyboard macro).

Hotkeys (Mouse, Joystick and Keyboard Shortcuts)

In the following example, the hotkey Win+N is configured to launch Notepad. The pound sign [#] stands for the Windows key, which is known as a modifier: #n:: Run Notepad return In the final line above, "return" serves to finish the hotkey. #n::Run Notepad To use more than one modifier with a hotkey, list them consecutively (the order does not matter) . ^! Basic AutoHotkey Tutorial. FAQ. Language Syntax Common Tasks Hotkeys, Hotstrings, and Remapping Language Syntax When are quotation marks used with commands and their parameters?

FAQ

Double quotes (") have special meaning only within expressions. When exactly are variable names enclosed in percent signs? Variable names are always enclosed in percent signs except in cases illustrated in bold below: 1) In parameters that are input or output variables: StringLen, OutputVar, InputVar 2) On the left side of an assignment: Var = 123abc 3) On the left side of traditional (non-expression) if-statements: If Var1 < %Var2% 4) Everywhere in expressions. AutoHotkey. Features[edit] 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.

AutoHotkey

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: 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.

Unofficial AutoHotkey FAQ. Note July 2013 - Now also available as Gist Note: this page comes from the AutoHotkey Wiki which has been removed. 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. AutoHotkey Tutorials — aboutscript. Thanks to a recommendation from Jake, who I talk to on the #ahk chat room, I’m going to talk about the languages in addition to scripts I find interesting or useful. I’ll be doing a fairly long series of tutorials on the AutoHotkey scripting language. I’m writing up a plan for them to hopefully keep it clean, see it on Google docs .

(It pretty much updates as I type.) All of these videos will be in the aboutscript YouTube channel and on my personal Screenr where I record them. Creating Your First AutoHotkey Script. [language];PushToTalk.ahk ; Push and hold Win+S to activate the microphone, release to mute. ;Skrommel @2006 #SingleInstance,Force applicationname=PushToTalk Gosub,TRAYMENU SoundGet,micvol,Microphone:2,Volume SoundSet,0,Microphone:2,Volume ToolTip,Mic is Off Sleep,2000 ToolTip, Return. AutoHotKey Tutorial, Learn the Basics of making a bot! Okay,Welcome to my thread.