简体   繁体   English

imacros javascript函数循环不起作用

[英]imacros javascript function loop not working

function master will only loop twice no matter what number i set the function parameter loopTest to. 无论我将功能参数loopTest设置为多少,函数主机都只会循环两次。 What am i doing wrong? 我究竟做错了什么?

function master(loopTest){

for (i = 1; i <= loopTest; i++){
iimPlay("CODE:URL GOTO=imacros://run/?m=Testing.js");
}

}

master(8);

After your iimPlay("...") I added the line iimPlayCode("WAIT SECONDS=1"); 在您的iimPlay("...")我添加了一行iimPlayCode("WAIT SECONDS=1"); and it works as needed. 它可以根据需要工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM