Macro:stop()
Stop the running macro immediately.
Signature
Macro:stop(): void
Returns
Never returns: the macro stops at this point.
Description
Use it to end a macro on purpose, for example after a fatal check or when the user asked for one run only. The app stops the task and closes the run cleanly, so the stop is recorded like the toolbar's Stop button.
Example
if not Screen:exist("ready.png") then
toast("The app is not ready")
Macro:stop()
end
Compatible Version: 1.0.0.36 and up