luvmacro
Menu
Download

Steps that wait, check and restart

Wait until, Stop if, Retry with a check, Checkpoint and Restart Macro: the editor steps that let a macro handle things going wrong.

What these are

These steps are for macros you make or change in the editor (see Edit a macro). They let a macro look at the screen and decide what to do. A plain recording does not use any of them, and nothing changes for a macro that doesn’t.

Every one of them is limited, so a macro can’t loop forever by accident, and Stop (F8) ends them at once.

The steps

StepWhat it does
Wait untilLooks at a condition every moment (every 0.25 seconds unless you change it) for up to 10 seconds unless you change it. When it is true the macro carries on. If time runs out it stops safely (LM-6014), or carries on if you chose that.
Stop ifEnds the macro when a condition is true. You can ask it to end as a problem with your own reason (LM-6016). When the condition is false it does nothing.
RetryRuns steps again until they work. You can add a check that decides whether a try worked, and backup steps for when every try fails.
Checkpoint and Go back to a checkpointA named section the macro can start again, a limited number of times (3 unless you change it). After the last return it runs the backup steps once and goes on, or stops with LM-6015 if there are none.
Restart Macro“Start this macro again from Step 1.” Give it a condition, such as a “raid failed” screen showing, and it works as a failsafe.

Restart Macro

Restart Macro does not stop the macro and does not change your Repeat setting. If it keeps firing, more than 10 times in 60 seconds (you can change this on the step), the macro stops with a clear message instead of restarting forever (LM-6017). A macro that uses it needs LuvMacro 2.4 or later.

Leave the repeat and Next round

Inside a Repeat group, Leave the repeat and Next round of the repeat work as they always did. Outside a Repeat group, when Repeat continuously is on, they now end that round and start the macro again from Step 1. In 2.3 and earlier they stopped the macro with LM-6007.

Saved checks

Any condition can be saved under a name (“Save this check to reuse”) and used anywhere in the macro by name.

If a macro stops

Read the message in LuvMacro’s window. It gives the reason, or an LM code you can look up in Error codes. The codes LM-6014 to LM-6017 come from these steps.