var macro;
macro = "CODE:";
macro += "TAG POS={{i}} TYPE=BUTTON ATTR=CLASS:btn<SP>btn-small<SP>likebutton" + "\n";
macro += "WAIT SECONDS=2" + "\n";
var i=1;
while(true)
{
//pause each fifth loop
if(i%5==0)
{
iimPlay("CODE: WAIT SECONDS=20")
}
iimSet("i",i);
iimPlay(macro);
//increase counter
i++;
}
This is the code that will loop infinite loop. Each fifth loop it will pause and wait for 20 seconds. Then it will move on from the next loop counter.