-3

javascriptでimm(imacros)スクリプトをループするにはどうすればよいですか

手伝って頂けますか ?

macro +=  "URL GOTO=http://test.com/" + "\n"; 
macro +=  "SET !ERRORIGNORE YES" + "\n"; 
macro +=  "SET !TIMEOUT_PAGE 10" + "\n"; 
macro +=  "SET !EXTRACT NULL " + "\n"; 
macro +=  "wait seconds=1" + "\n"; 
macro +=  "TAG POS={{i}} TYPE=A ATTR=ID:like-*" + "\n"; 
macro +=  "wait seconds=0.5" + "\n"; 
macro +=  "WAIT SECONDS=360" + "\n"; 
for(i=1;i<10;i++)
{
ret=iimSet("i",i);
ret=iimPlay(macro);
}
4

1 に答える 1

1
var macro;

    macro =  "CODE:";
    macro +=  "URL GOTO=http://test.com/" + "\n"; 
    macro +=  "SET !ERRORIGNORE YES" + "\n"; 
    macro +=  "SET !TIMEOUT_PAGE 10" + "\n"; 
    macro +=  "SET !EXTRACT NULL " + "\n"; 
    macro +=  "wait seconds=1" + "\n"; 
    macro +=  "TAG POS={{i}} TYPE=A ATTR=ID:like-*" + "\n"; 
    macro +=  "wait seconds=0.5" + "\n"; 
    macro +=  "WAIT SECONDS=360" + "\n"; 
    for(i=1;i<10;i++)
    {
    iimSet("i",i);
    ret=iimPlay(macro);
    }

今すぐやってみて下さい。

編集:以前のバグを修正しました。

于 2013-05-14T21:44:38.797 に答える