Command: Send

Description: Sends keystrokes and mouse clicks to the active window

Example: Send, Hello World!


Command: Run

Description: Runs an external program or document

Example: Run, notepad.exe


Command: Sleep

Description: Pauses the script for a specified amount of time (in milliseconds)

Example: Sleep, 1000


Command: Loop

Description: Repeats a section of code a specified number of times

Example: Loop, 5 { MsgBox, Loop iteration: %A_Index% }


Command: IfWinExist

Description: Checks if a specified window exists

Example: IfWinExist, Untitled - Notepad { WinActivate }


Command: WinActivate

Description: Activates a specified window

Example: WinActivate, Untitled - Notepad


Command: MsgBox

Description: Displays a message box with specified text

Example: MsgBox, Hello World!


Command: Hotkey

Description: Creates a custom hotkey

Example: ^j:: MsgBox, You pressed Ctrl+J


Command: FileAppend

Description: Writes text to the end of a file, creating it if necessary

Example: FileAppend, Hello World!, C:\MyFile.txt


Command: FileRead

Description: Reads the entire contents of a file into a variable

Example: FileRead, FileContents, C:\MyFile.txt


Command: Clipboard

Description: Sets or retrieves the current contents of the clipboard

Example: Clipboard := "Hello World!"


Command: SetTimer

Description: Sets a timer to run a specified label at given intervals

Example: SetTimer, MyLabel, 1000


Command: #Persistent

Description: Keeps a script running indefinitely

Example: #Persistent


Command: Gui

Description: Creates and manages custom graphical user interfaces

Example: Gui, Add, Text,, Hello World!


Command: InputBox

Description: Displays an input box to collect user input

Example: InputBox, UserInput, Please enter your name:


Command: ControlSend

Description: Sends keystrokes to a specific window or control

Example: ControlSend, , Hello, Untitled - Notepad


Command: PixelSearch

Description: Searches a region of the screen for a pixel of the specified color

Example: PixelSearch, Px, Py, 0, 0, A_ScreenWidth, A_ScreenHeight, 0xFF0000


Command: ImageSearch

Description: Searches a region of the screen for an image

Example: ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *image.png