Hello , is it possible to make macro pause not stop after xx loop so I can resume later from the lefted place with same loop number ?
This is not possible yet. But there are two options:
-
Change the start value of the loop button in the loop dialog box.
-
Or, instead of using the loop button, you can use a while… end loop inside the macro. This allows you to easily set the start and end value:
{
"Name": "loop test",
"CreationDate": "2021-3-25",
"Commands": [
{
"Command": "store",
"Target": "3",
"Value": "current"
},
{
"Command": "store",
"Target": "5",
"Value": "end"
},
{
"Command": "while_v2",
"Target": "${current} <= ${end}",
"Value": ""
},
{
"Command": "echo",
"Target": "current loop=${current}",
"Value": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number (${current}) +1 ;",
"Value": "current"
},
{
"Command": "end",
"Target": "",
"Value": ""
}
]
}
Need a simple If_v2
{
"Command": "if_v2",
"Target": "${!LOOP} = 5",
"Value": ""
},
{
"Command": "pause",
"Target": "",
"Value": ""
},
{
"Command": "end",
"Target": "",
"Value": ""
},
2 Likes