hen using section continuation. Place the options on the same lines as the open parentheses:
Help = (LTrim Comments To Calibrate Range: ; Instructions for calibration 1. Cursor at start point — CTRL+LButton and hold. 2. Drag to end of scale and release. 3. Enter length of scale and units i.e. 10 miles. Manual Calibration: CTRL+ALT+Z ; Calibration GUI To Measure Distance: ; Instruction for measuring distance 1. Cursor at start point — SHIFT+LButton and hold. 2. Drag to end of measurement and release. 3. Distance displayed and saved to Clipboard. CTRL+ALT+F12 for this Help Message. ) MsgBox, 0, MouseMeasure Help, % Help
Line 2 above includes the options
LTrim removes any space or tabs found to the left of the text and
Comments prevents the display of the comments appearing on lines 3, 9, and 11 (as shown at right).
Multi-line continuation section options include (from online AutoHotkey documentation):
- Join: Specifies how lines should be connected together. If this option is omitted, each line except the last will be followed by a linefeed character (`n). If the word Join is specified by itself, lines are connected directly to each other without any characters in between. Otherwise, the word Join should be followed immediately by as many as 15 characters. For example,
Join`swould insert a space after each line except the last (“`s” indicates a literal space — it is a special escape sequence recognized only by Join). Another example is
Join`r`n, which inserts CR+LF between lines. Similarly,
Join|inserts a pipe between lines. To have the final line in the section also ended by a join-string, include a blank line immediately above the section’s closing parenthesis.
Known limitation: If the Join string ends with a colon, it must not be the last option on the line. For example,
(Join:is treated as the label “(Join” and
(LTrim Join:is unsupported, but
(Join: Cis okay.
- LTrim: Omits spaces and tabs at the beginning of each line. This is primarily used to allow the continuation section to be indented. Also, this option may be turned on for multiple continuation sections by specifying
#LTrimon a line by itself.
#LTrimis positional: it affects all continuation sections physically beneath it. The setting may be turned off via
- RTrim0 (RTrim followed by a zero): Turns off the omission of spaces and tabs from the end of each line.
- Comments (or Comment or Com or C) [v1.0.45.03+]: Allows semicolon comments inside the continuation section (but not
/*..*/). Such comments (along with any spaces and tabs to their left) are entirely omitted from the joined result rather than being treated as literal text. Each comment can appear to the right of a line or on a new line by itself.
- % (percent sign): Treats percent signs as literal rather than as variable references. This avoids the need to escape each percent sign to make it literal. This option is not needed in places where percent signs are already literal, such as auto-replace hotstrings.
- , (comma): Treats commas as delimiters rather than as literal commas. This rarely-used option is necessary only for the commas between command parameters because in function calls, the type of comma does not matter. Also, this option transforms only those commas that actually delimit parameters. In other words, once the command’s final parameter is reached (or there are no parameters), subsequent commas are treated as literal commas regardless of this option.
- ` (accent): Treats each backtick character literally rather than as an escape character. This also prevents commas and percent signs from being explicitly and individually escaped. In addition, it prevents the translation of any explicitly specified escape sequences such as `r and `t.
- ) [v1.1.01+]: If a closing parenthesis appears in the continuation section’s options (except as a parameter of the Join option), the line is reinterpreted as an expression instead of the beginning of a continuation section. This allows expressions like
(x.y)[z]()to work without the need to escape the opening parenthesis.
Click the Follow button at the top of t