AutoHotkey v2 Help
Download the archived PDF
Table of contents
-
#ClipboardTimeout
-
#ErrorStdOut
-
#HotkeyInterval
-
#HotkeyModifierTimeout
-
#Hotstring
-
#If
-
#IfTimeout
-
#Include
-
#IncludeAgain
-
#InputLevel
-
#InstallKeybdHook
-
#InstallMouseHook
-
#KeyHistory
-
#MaxHotkeysPerInterval
-
#MaxThreads
-
#MaxThreadsBuffer
-
#MaxThreadsPerHotkey
-
#MenuMaskKey
-
#NoTrayIcon
-
#Persistent
-
#SingleInstance
-
#SuspendExempt
-
#UseHook
-
#Warn
-
#WinActivateForce
-
!
-
!=
-
%Expr%
-
&
-
&&
-
&=
-
*
-
**
-
*=
-
+
-
++
-
+=
-
,
-
-
-
--
-
-=
-
.
-
.=
-
/
-
//
-
//=
-
/=
-
:=
-
<
-
<<
-
<<=
-
<=
-
<>
-
=
-
==
-
>
-
>=
-
>>
-
>>=
-
?:
-
[]
-
^
-
^=
-
{}
-
|
-
|=
-
||
-
~
-
~=
-
A_AhkPath
-
A_AhkVersion
-
A_AllowMainWindow
-
A_AppData
-
A_AppDataCommon
-
A_Args
-
A_ComputerName
-
A_ComSpec
-
A_ControlDelay
-
A_CoordMode...
-
A_Cursor
-
A_DD
-
A_DDD
-
A_DDDD
-
A_DefaultMouseSpeed
-
A_Desktop
-
A_DesktopCommon
-
A_DetectHiddenText
-
A_DetectHiddenWindows
-
A_EndChar
-
A_EventInfo
-
A_FileEncoding
-
A_Hour
-
A_IconFile
-
A_IconHidden
-
A_IconNumber
-
A_IconTip
-
A_Index
-
A_InitialWorkingDir
-
A_IPAddress1 through 4
-
A_Is64bitOS
-
A_IsAdmin
-
A_IsCompiled
-
A_IsCritical
-
A_IsPaused
-
A_IsSuspended
-
A_IsUnicode
-
A_KeyDelay
-
A_KeyDelayPlay
-
A_KeyDuration
-
A_KeyDurationPlay
-
A_Language
-
A_Language Values
-
A_LastError
-
A_LineFile
-
A_LineNumber
-
A_ListLines
-
A_LoopField
-
A_LoopFileAttrib
-
A_LoopFileDir
-
A_LoopFileExt
-
A_LoopFileFullPath
-
A_LoopFileName
-
A_LoopFilePath
-
A_LoopFileShortName
-
A_LoopFileShortPath
-
A_LoopFileSize
-
A_LoopFileSizeKB
-
A_LoopFileSizeMB
-
A_LoopFileTimeAccessed
-
A_LoopFileTimeCreated
-
A_LoopFileTimeModified
-
A_LoopReadLine
-
A_LoopRegKey
-
A_LoopRegName
-
A_LoopRegTimeModified
-
A_LoopRegType
-
A_MDay
-
A_Min
-
A_MM
-
A_MMM
-
A_MMMM
-
A_Mon
-
A_MouseDelay
-
A_MouseDelayPlay
-
A_MSec
-
A_MyDocuments
-
A_Now
-
A_NowUTC
-
A_OSVersion
-
A_PriorHotkey
-
A_PriorKey
-
A_ProgramFiles
-
A_Programs
-
A_ProgramsCommon
-
A_PtrSize
-
A_RegView
-
A_ScreenDPI
-
A_ScreenHeight
-
A_ScreenWidth
-
A_ScriptDir
-
A_ScriptFullPath
-
A_ScriptHwnd
-
A_ScriptName
-
A_Sec
-
A_SendLevel
-
A_SendMode
-
A_Space
-
A_StartMenu
-
A_StartMenuCommon
-
A_Startup
-
A_StartupCommon
-
A_StoreCapsLockMode
-
A_StringCaseSense
-
A_Tab
-
A_Temp
-
A_ThisFunc
-
A_ThisHotkey
-
A_ThisLabel
-
A_TickCount
-
A_TimeIdle
-
A_TimeIdleKeyboard
-
A_TimeIdleMouse
-
A_TimeIdlePhysical
-
A_TimeSincePriorHotkey
-
A_TimeSinceThisHotkey
-
A_TitleMatchMode
-
A_TitleMatchModeSpeed
-
A_TrayMenu
-
A_UserName
-
A_WDay
-
A_WinDelay
-
A_WinDir
-
A_WorkingDir
-
A_YDay
-
A_Year
-
A_YWeek
-
A_YYYY
-
abbreviation expansion
-
Abs
-
absolute value, Abs
-
Acknowledgements
-
ACos
-
activate a window
-
ActiveX controls (GUI)
-
Address of a variable
-
administrator privileges for scripts
-
ahk2exe
-
ahk_class
-
ahk_exe
-
ahk_group
-
ahk_id
-
ahk_pid
-
alnum
-
alpha
-
AltGr
-
AltTab
-
and
-
append to file
-
Arrays
-
ASin
-
assigning values to variables
-
ATan
-
attributes of files and folders
-
auto-execute section
-
auto-replace text as you type it
-
balloon tip
-
base (Objects)
-
beep the PC speaker
-
Bind method (Func object)
-
bitwise operations
-
blind-mode Send
-
BlockInput
-
blocks (lines enclosed in braces)
-
BoundFunc object
-
Break
-
buffering
-
built-in functions
-
built-in variables
-
Button controls (GUI)
-
button list (mouse and joystick)
-
button state
-
ByRef
-
Call method (Func object)
-
callbacks
-
CaretGetPos
-
case sensitive strings
-
Catch
-
Ceil
-
Changelog
-
Checkbox controls (GUI)
-
choose file
-
choose folder
-
Chr
-
class (Objects)
-
class name of a window
-
Click a mouse button
-
Clipboard
-
ClipboardAll
-
ClipWait
-
Clone method (Object)
-
close a window
-
Close (Gui event)
-
CLSID List (My Computer, etc.)
-
color names, RGB/HTML
-
color of pixels
-
COM
-
ComboBox controls (GUI)
-
comma operator (multi-statement)
-
command line parameters
-
comments in scripts
-
ComObjActive
-
ComObjArray
-
ComObjConnect
-
ComObjCreate
-
ComObject
-
ComObjError
-
ComObjFlags
-
ComObjGet
-
ComObjQuery
-
ComObjType
-
ComObjValue
-
Compatibility
-
compile a script
-
concatenate, in expressions
-
concatenate, script lines
-
concepts and conventions
-
ContextMenu (Gui event)
-
continuation sections
-
Continue
-
Control functions
-
control flow
-
ControlAddItem
-
ControlChoose
-
ControlChooseString
-
ControlClick
-
ControlDeleteItem
-
ControlEditPaste
-
ControlFindItem
-
ControlFocus
-
ControlGetChecked
-
ControlGetChoice
-
ControlGetCurrentCol
-
ControlGetCurrentLine
-
ControlGetEnabled
-
ControlGetExStyle
-
ControlGetFocus
-
ControlGetHwnd
-
ControlGetLine
-
ControlGetLineCount
-
ControlGetList
-
ControlGetPos
-
ControlGetSelected
-
ControlGetStyle
-
ControlGetTab
-
ControlGetText
-
ControlGetVisible
-
ControlHide
-
ControlHideDropDown
-
ControlMove
-
ControlSend
-
ControlSendRaw
-
ControlSetChecked
-
ControlSetEnabled
-
ControlSetExStyle
-
ControlSetStyle
-
ControlSetTab
-
ControlSetText
-
ControlShow
-
ControlShowDropDown
-
convert a script to an EXE
-
coordinates
-
CoordMode
-
copy file
-
copy folder/directory
-
Cos
-
create file
-
create folder/directory
-
Critical
-
current directory
-
current thread
-
cursor shape
-
custom combination hotkeys
-
Custom controls (GUI)
-
DateAdd (date/time math)
-
DateDiff (date/time comparison)
-
dates and times (of files)
-
DateTime controls (GUI)
-
debugger
-
debugging a script
-
delete files
-
delete folder/directory
-
Delete method (Object)
-
DetectHiddenText
-
DetectHiddenWindows
-
dialog DirSelect
-
dialog FileSelect
-
dialog InputBox
-
dialog MsgBox
-
digit
-
DirCopy
-
DirCreate
-
DirDelete
-
DirExist
-
DirMove
-
DirSelect
-
disk space
-
divide (math)
-
DllCall
-
Download (download a file)
-
DPI scaling
-
drag and drop (GUI windows)
-
drag the mouse
-
DriveEject
-
DriveLock
-
DriveSetLabel
-
DriveUnlock
-
DriveGetCapacity
-
DriveGetFilesystem
-
DriveGetLabel
-
DriveGetList
-
DriveGetSerial
-
DriveGetSpaceFree
-
DriveGetStatus
-
DriveGetStatusCD
-
DriveGetType
-
DropDownList controls (GUI)
-
DropFiles (Gui event)
-
Dynamic function calls
-
Edit
-
Edit controls (GUI)
-
Else
-
Enumerator object
-
EnvGet
-
environment variables
-
environment variables (change them)
-
EnvSet
-
ErrorLevel
-
ErrorStdOut
-
escape sequence
-
Escape (Gui event)
-
Exception function
-
Exit
-
ExitApp
-
Exp
-
expressions
-
False
-
FAQ (Frequently Asked Questions)
-
file attributes
-
File object
-
file or folder (does it exist)
-
file pattern
-
file, creating
-
file, reading
-
file, writing/appending
-
FileAppend
-
FileCopy
-
FileCreateShortcut
-
FileDelete
-
FileEncoding
-
FileExist
-
FileGetAttrib
-
FileGetShortcut
-
FileGetSize
-
FileGetTime
-
FileGetVersion
-
FileInstall
-
FileMove
-
FileOpen
-
FileRead
-
FileRecycle
-
FileRecycleEmpty
-
FileSelect
-
FileSetAttrib
-
FileSetTime
-
Finally
-
find a file
-
find a string
-
find a window
-
floating point (check if it is one)
-
Floor
-
focus
-
folder/directory copy
-
folder/directory create
-
folder/directory move
-
folder/directory remove
-
folder/directory select
-
Fonts
-
For-loop
-
Format
-
FormatTime
-
free space
-
FTP uploading example
-
functions, alphabetical list
-
functions (defining and calling)
-
functions (libraries)
-
function objects
-
Func object
-
Func
-
game automation
-
GetAddress method (Object)
-
GetCapacity method (Object)
-
GetKeyName
-
GetKeySC
-
GetKeyState
-
GetKeyVK
-
global variables in functions
-
Gosub
-
Goto
-
GroupActivate
-
GroupAdd
-
GroupBox controls (GUI)
-
GroupClose
-
GroupDeactivate
-
Gui (create a GUI)
-
Gui control types
-
Gui events
-
Gui object
-
Gui styles reference
-
GuiControl object
-
GuiCreate
-
GuiCtrlFromHwnd
-
GuiFromHwnd
-
HasKey method (Object)
-
HBITMAP:
-
hibernate or suspend
-
HICON:
-
hidden text
-
hidden windows
-
HKEY_CLASSES_ROOT
-
HKEY_CURRENT_CONFIG
-
HKEY_CURRENT_USER
-
HKEY_LOCAL_MACHINE
-
HKEY_USERS
-
hook
-
Hotkey
-
Hotkey function
-
Hotkey controls (GUI)
-
Hotkey, ListHotkeys
-
Hotkey, other features
-
HotkeyInterval
-
HotkeyModifierTimeout
-
Hotstring()
-
hotstrings and auto-replace
-
HTML color names
-
HWND (of a control)
-
HWND (of a window)
-
icon, changing
-
ID number for a window
-
If (expression)
-
IL_Add
-
IL_Create
-
IL_Destroy
-
Image Lists (GUI)
-
ImageSearch
-
Include
-
infrared remote controls
-
IniDelete
-
IniRead
-
IniWrite
-
Input
-
InputBox
-
InputEnd
-
InsertAt method (Object)
-
Install
-
installer options
-
InstallKeybdHook
-
InstallMouseHook
-
InStr
-
integer (check if it is one)
-
Interrupt
-
is (value is type)
-
IsByRef
-
IsFunc
-
IsLabel
-
IsObject
-
Join (continuation sections)
-
Joystick
-
JScript, embedded/inline
-
key list (keyboard, mouse, joystick)
-
key state
-
keyboard hook
-
KeyHistory
-
keystrokes, sending
-
KeyWait
-
labels
-
language overview
-
last found window
-
length of a string
-
Length method (Object)
-
Length method (File object)
-
libraries of functions
-
license
-
line continuation
-
Link controls (GUI)
-
ListBox controls (GUI)
-
ListHotkeys
-
ListLines
-
ListVars
-
ListView controls (GUI)
-
ListView, getting text from
-
ListView.Add
-
ListView.Delete
-
ListView.DeleteCol
-
ListView.GetCount
-
ListView.GetNext
-
ListView.GetText
-
ListView.Insert
-
ListView.InsertCol
-
ListView.Modify
-
ListView.ModifyCol
-
ListView.SetImageList
-
Ln
-
lnk (link/shortcut) file
-
LoadPicture
-
local variables
-
Locale
-
Log
-
logarithm, Log
-
logoff
-
long file name (converting to)
-
Loop
-
Loop (until)
-
Loop (while)
-
Loop Files (and folders)
-
Loop Parse (strings)
-
Loop Read (file contents)
-
Loop Reg (registry)
-
lParam
-
LTrim (continuation sections)
-
LTrim
-
macro
-
main window
-
math functions
-
math operations (expressions)
-
Max()
-
MaxHotkeysPerInterval
-
MaxIndex method
-
MaxThreads
-
MaxThreadsBuffer
-
MaxThreadsPerHotkey
-
Menu object
-
MenuCreate
-
MenuFromHandle
-
Menu Bar (GUI)
-
Menu Icon
-
MenuSelect
-
message list (WM_*)
-
messages, receiving
-
messages, sending
-
meta-functions (Objects)
-
Min()
-
MinIndex method
-
Mod
-
modal (always on top)
-
modulo, Mod
-
MonitorGet
-
MonthCal controls (GUI)
-
mouse hook
-
mouse speed
-
mouse wheel
-
MouseClick
-
MouseClickDrag
-
MouseGetPos
-
MouseMove
-
move a window
-
move file
-
move folder/directory
-
MsgBox
-
mute (changing it)
-
new
-
NewEnum method (Object)
-
not
-
NoTimers
-
NoTrayIcon
-
number (check if it is one)
-
NumGet
-
NumPut
-
Objects (general information)
-
Object functions and methods
-
ObjAddRef
-
ObjBindMethod
-
ObjClone
-
ObjDelete
-
ObjGetAddress
-
ObjGetCapacity
-
ObjHasKey
-
ObjInsertAt
-
ObjLength
-
ObjMaxIndex
-
ObjMinIndex
-
ObjNewEnum
-
ObjPop
-
ObjPush
-
ObjRawSet
-
ObjRelease
-
ObjRemoveAt
-
ObjSetCapacity
-
OnClipboardChange
-
OnCommand (Gui)
-
OnEvent (Gui)
-
OnExit
-
OnMessage
-
OnNotify (Gui)
-
open file
-
operators in expressions
-
or
-
Ord
-
OutputDebug
-
OwnDialogs (GUI)
-
Owner of a GUI window
-
parameters passed into a script
-
parse a string (Loop)
-
parse a string (StrSplit)
-
Pause
-
performance of scripts
-
Picture controls (GUI)
-
PID (Process ID)
-
PixelGetColor
-
PixelSearch
-
play a sound or video file
-
Pop method (Object)
-
PostMessage
-
power (exponentiation)
-
prefix and suffix keys
-
print a file
-
priority of a process
-
priority of a thread
-
ProcessClose
-
ProcessExist
-
ProcessSetPriority
-
ProcessWait
-
ProcessWaitClose
-
Progress controls (GUI)
-
properties (Objects)
-
properties of a file or folder
-
Push method (Object)
-
quit script
-
Radio controls (GUI)
-
Random
-
RawRead method (File object)
-
RawWrite method (File object)
-
read file
-
Read method (File object)
-
READONLY
-
reboot
-
Reference-Counting
-
REG_BINARY
-
REG_DWORD
-
REG_EXPAND_SZ
-
REG_MULTI_SZ
-
REG_SZ
-
RegDelete
-
RegDeleteKey
-
RegEx: Quick Reference
-
RegEx: Callouts
-
RegEx: SetTitleMatchMode RegEx
-
RegExMatch
-
RegExReplace
-
RegisterCallback
-
registry loop
-
RegRead
-
Regular Expression Callouts
-
regular expressions: Quick Reference
-
regular expressions: RegExMatch
-
regular expressions: RegExReplace
-
regular expressions: SetTitleMatchMode RegEx
-
RegWrite
-
Reload
-
remap joystick
-
remap keys or mouse buttons
-
remote controls, hand-held
-
remove folder/directory
-
RemoveAt method (Object)
-
rename file
-
resize a window
-
restart the computer
-
Return
-
RGB color names
-
RGB colors
-
Round
-
rounding a number
-
RTrim
-
Run
-
RunAs
-
RunWait
-
scan code
-
Script Showcase
-
Scripts
-
select file
-
select folder
-
Send
-
SendEvent
-
sending data between scripts
-
SendInput
-
SendLevel
-
SendMessage
-
SendMode
-
SendPlay
-
SendRaw
-
SetCapacity method (Object)
-
SetCapsLockState
-
SetControlDelay
-
SetDefaultMouseSpeed
-
SetKeyDelay
-
SetMouseDelay
-
SetNumLockState
-
SetRegView
-
SetScrollLockState
-
SetStoreCapsLockMode
-
SetTimer
-
SetTitleMatchMode
-
SetWinDelay
-
SetWorkingDir
-
short file name (8.3 format)
-
short-circuit boolean evaluation
-
shortcut file
-
Shutdown
-
Silent Install/Uninstall
-
Sin
-
SingleInstance
-
Size (Gui event)
-
size of a file/folder
-
size of a window
-
Sleep
-
Slider controls (GUI)
-
Sort
-
SoundBeep
-
SoundGet
-
SoundPlay
-
SoundSet
-
space
-
spinner control (GUI)
-
SplitPath
-
splitting long lines
-
Sqrt
-
standard library
-
standard output (stdout)
-
static variables
-
StatusBar controls (GUI)
-
StatusBar: SetIcon
-
StatusBar: SetParts
-
StatusBar: SetText
-
StatusBarGetText
-
StatusBarWait
-
StrGet
-
string (search for)
-
string: InStr
-
string: SubStr
-
StringCaseSense
-
StrLen
-
StrLower
-
StrPut
-
StrReplace
-
StrSplit
-
StrUpper
-
structures, via DllCall
-
styles for GUI methods
-
SubStr
-
Super-global variables
-
Suspend
-
suspend or hibernate
-
SysGet
-
Tab controls (GUI)
-
Tan
-
terminate a window
-
terminate script
-
ternary operator (?:)
-
Text controls (GUI)
-
Thread
-
threads
-
Throw
-
time
-
Timer (timed subroutines)
-
times and dates (compare)
-
times and dates (math)
-
times and dates (of files)
-
title of a window
-
ToolTip
-
transparency of a window
-
tray icon
-
tray menu (customizing)
-
TraySetIcon
-
TrayTip
-
TreeView controls (GUI)
-
TreeView.Add
-
TreeView.Delete
-
TreeView.Get
-
TreeView.GetChild
-
TreeView.GetCount
-
TreeView.GetNext
-
TreeView.GetParent
-
TreeView.GetPrev
-
TreeView.GetSelection
-
TreeView.GetText
-
TreeView.Modify
-
TreeView.SetImageList
-
Trim
-
True
-
Try
-
Tutorial
-
Type function
-
Until
-
UpDown controls (GUI)
-
UseHook
-
user (run as a different user)
-
user library
-
variables
-
variables, assigning to
-
variables, built-in
-
variables, ListVars
-
variables, type of data
-
variadic functions
-
variants (duplicate hotkeys and hotstrings)
-
VarSetCapacity
-
version of a file
-
virtual key
-
volume (changing it)
-
wait (sleep)
-
wait for a key to be released or pressed
-
Wheel hotkeys for mouse
-
Wheel, simulating rotation
-
While-loop
-
wildcards (for files & folders)
-
WinActivate
-
WinActivateBottom
-
WinActivateForce
-
WinActive
-
Winamp automation
-
WinClose
-
window group
-
window messages
-
WinExist
-
WinGetClass
-
WinGetClientPos
-
WinGetControls
-
WinGetControlsHwnd
-
WinGetCount
-
WinGetExStyle
-
WinGetID
-
WinGetIDLast
-
WinGetList
-
WinGetMinMax
-
WinGetPID
-
WinGetPos
-
WinGetProcessName
-
WinGetProcessPath
-
WinGetStyle
-
WinGetText
-
WinGetTitle
-
WinGetTransColor
-
WinGetTransparent
-
WinHide
-
WinKill
-
WinLIRC, connecting to
-
WinMaximize
-
WinMinimize
-
WinMinimizeAll
-
WinMinimizeAllUndo
-
WinMove
-
WinMoveBottom
-
WinMoveTop
-
WinRedraw
-
WinRestore
-
WinSetAlwaysOnTop
-
WinSetEnabled
-
WinSetExStyle
-
WinSetRegion
-
WinSetStyle
-
WinSetTitle
-
WinSetTransColor
-
WinSetTransparent
-
WinShow
-
WinSize (via WinMove)
-
WinTitle
-
WinWait
-
WinWaitActive
-
WinWaitClose
-
WinWaitNotActive
-
WM_* (Windows messages)
-
WM_COPYDATA
-
working directory
-
wParam
-
write file
-
Write method (File object)
-
WS_* (GUI styles)
-
XButton
-
YYYYMMDDHH24MISS
-
{Blind}