2012-08-07 65 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"); 
};