-2

我想在 30 个 facebook 粉丝页面自动重新加载 facebook 页面时自动重新加载页面,并且再次与 start 不同,此页面簿页面中包含的代码与 imacro 代码不同,在哪里?此代码显示在下面。

var unlike,rnlike;
unlike =  "CODE:";
unlike += "VERSION BUILD=7401110 RECORDER=FX" + "\n";
//unlike += "SET !ERRORIGNORE YES" + "\n";
unlike += "TAB T=1" + "\n";
unlike += "'URL GOTO=https://www.facebook.com/browse/other_connections_of/" + "\n";
unlike += "TAG POS={{j}} TYPE=SPAN ATTR=CLASS:uiButtonText&&TXT:Unlike" + "\n";
unlike += "wait seconds=2" + "\n";
var n=prompt("Please enter number of unlikes:");
var start;
start = iimPlay("CODE:URL GOTO=https://www.facebook.com/browse/other_connections_of/");

main:
{
    for (j=1;j<=n;j++)
    {
    iimSet("j", j)
    rnlike=iimPlay(unlike);
    if (rnlike == -101) // abort script if user presses Stop button
            {
            break main;
            }
    if (rnlike == -802)//refresh if timeout
            {   
            iimPlay("CODE:REFRESH",30);
            }
4

1 回答 1

2
    main:
    {
    var count=0;
        for (j=1;j<=n;j++)
        {
    if(count==30){
    iimPlay("CODE:REFRESH",30);
    count=0;
    j=0;
    continue;
    }     
    count++;
        iimSet("j", j)
        rnlike=iimPlay(unlike);
        if (rnlike == -101) // abort script if user presses Stop button
                {
                break main;
                }
        if (rnlike == -802)//refresh if timeout
                {   
                iimPlay("CODE:REFRESH",30);
                }
}}
于 2013-03-29T18:58:19.413 回答