IntelliMacro macros are written in a line-based scripting language similar to Visual Basic. By default, every command is written in its own line. If you want to span one command over multiple lines, you have to put an underscore (_) to the end of every line but the last one. You can split lines only between tokens; the underscore must be separated from the token before it. If you want to put more than one command into one line, separate them with a semicolon (;).
Comments are started by one or more hash signs (#) and span to the end of the line. A single hash sign has to be separated from the comment text with a space, to avoid ambiguity with charcode literals (see below). When in doubt, use more than one hash sign.
A command can start with an optional label, ending with a semicolon (:). The rest of the command is an assignment, a command call or a control flow statement (see below).