2012-08-07 80 views

回答

0

你不能在Imacros中做到这一点。 LOOP必须有一个最大值,它不能永远。用一个while循环写一个javascript,然后在该循​​环内用你搜索的值启动Imacro脚本,并让它返回结果。

var searchValue = "blabla" 
var found = false; 
while(!found) 
var ret; 
ret = iimSet("searchValue", searchValue); 
ret = iimPlay("myScript.iim"); 
/* Check for error */ 
if (ret = 1) { 
/* if no error we found it*/ 
found = true;} 
else { 
err = iimGetLastError(); 
/* we check if it is different than the error for Tag not found -921; else we go*/ 
    if (err !== -921) alert("Other error"); 
};