Loop

Loops a section of the Macro enclosed within LoopStart and LoopEnd. Nested Loops are accepted.

Loop (F9)

Parameters

Repeat
How many times to execute the loop section. If set to 0, the loop continues indefinitely until a break or return is encountered, or the Stop Key is pressed. This field accepts Variables & Expressions.

Remarks

The built-in variable A_Index contains the number of the current loop iteration. It contains 1 the first time the loop's body is executed. For the second time, it contains 2; and so on. If an inner loop is enclosed by an outer loop, the inner loop takes precedence.

A Loop command in Playback may perform different then an exported script duo to the method used internally by Macro Creator.

Loop