我希望自动重新加载Facebook页面,当30个脸书粉丝页面自动不同时,页面自动重新加载,再次不像开始哪个代码包含在此页面书页面不像imacro代码和哪里?此代码显示在beleow。
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);
}
答案 0 :(得分: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);
}
}}