Loop in Imacros using Javascript

后端 未结 2 1074
萌比男神i
萌比男神i 2020-11-28 16:42

how can i loop imm(imacros) script with javascript

I searched a little bit and found this:

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


        
相关标签:
2条回答
  • 2020-11-28 17:01
    for (i = 0; i < n; i++)
    {
    iimPlay("macroname.iim");
    }
    
    0 讨论(0)
  • 2020-11-28 17:20

    There is this option too.

    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 codes above n is not defined so it will return an error.

    0 讨论(0)
提交回复
热议问题