How to loop only a series of steps in iMacros

痴心易碎 提交于 2019-12-03 21:38:40

In *.iim file you can't loop specific lines from code, use *.js file instead:

var rand = Math.floor(Math.random()*13 + 6);  
var macro = "CODE:SET !ERRORIGNORE YES" + "\n";  
macro += "SET !TIMEOUT_STEP 20" + "\n";    
macro += "TAG POS={{i}} TYPE=INPUT:SUBMIT ATTR=VALUE:value" + "\n";    
macro += "TAG POS=R1 TYPE=SPAN ATTR=TXT:text" + "\n";    
macro += "WAIT SECONDS={{rand}}";    
for(var i=0;i<500;i++)    
{
iimDisplay(i);    
iimSet("i", i);    
iimSet("rand", rand);    
iimPlay(macro);}

Save this code in a *.js file and hit the Play button (not the one with loop).

andreas

Don't forget use add your macro here :

iimPlay(macro);} 

Change macro with your macro name, and use "" mark.. example :

"testmacro"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!