Search code examples
imacrosrestart

Restart iMacros from the beginning


i want to restart my iMacros from the beginning, without using java.

So for example:

WAIT SECONDS=1
URL GOTO=https://en.wikipedia.org/wiki/Main_Page
WAIT SECONDS=1
RESTART <----NOT EXISTING

Is there some way? Or maybe a workaround to do:

WAIT SECONDS=1
URL GOTO=https://en.wikipedia.org/wiki/Main_Page
WAIT SECONDS=1
GOTO LINE=1 <----NOT EXISTING

Solution

  • Answer provided by Shugar:

    SET next "MacroNameToRestart"
    SET S EVAL("('{{!LOOP}}' == 1) ? 'imacros://run/?m={{next}}.iim' : 'javascript:undefined;';")
    URL GOTO={{S}}