Loop in Imacros using Javascript

how can i loop imm (imacros) script using javascript

I searched a bit and found this:

for (i = 0; i < n; i++)
{
iimPlay(marconame.iim);
}

      

but when i use it my browser (Firefox 18) freezes: \

+3


source to share


2 answers


for (i = 0; i < n; i++)
{
iimPlay("macroname.iim");
}

      



+4


source


This option is also available.

var macro;

macro ="CODE:";
macro +="TAG POS=1 TYPE=DIV ATTR=CLASS:some_class"


var n=10;


for(var i=0;i<n;i++)
{
iimPlay(macro)
}

      



In the codes above, n is undefined, so it will return an error.

+1


source







All Articles