A macro is a list of commands, such as "type text", "run file". You can also use programming language elements, such as variables, functions, flow control and string manipulation functions. You can enter macro commands (text) directly in the editor. Read Syntax and Help and type-info topics. You can also record keys and mouse events, or use dialogs from the floating toolbar.
Usually, a command (or "statement") is a single line of text. Most commands look like this example:
lef+ 100 200 "Notepad"
Here lef is command keyword; + is "option"; 100, 200 and Notepad are "arguments" (or "parts"). This command means "press left mouse button at 100x200 pixels of Notepad window". Keywords have blue color. Most of them consist of 3 lowercase characters. Often some parts are optional. Examples:
lef 100 200 lef
When you launch a macro, QM compiles it and executes commands, starting from
topmost. The tray icon
indicates that macro
is running. Macro stops when last command was executed, or some command tells
to do so, or when an error occurs. To stop a running macro manually, press the
hot key that is set in Options (default is Pause). Only single macro can run
at a time. To execute more items simultaneously, use functions.