趣头条自动刷金币

var time,time1,time2,s,b;
while (true){
b = id("u4").findOne().bounds();
click(b.centerX() - 50, b.centerY());
sleep(1000);
if (id("kb").findOne(500)!=null) {
click(559,523);
sleep(1200);
} //else{
//click(559,523);
//sleep(1200);
click(559,357);
//sleep(900);
//var time
time=id("a90").findOne(500);//.text()
//t=id("a90").exits()

//time2=parseInt(time.slice(6,8))*60000;
//alert(t);
if (time!=null){
    time1=parseInt(time.text().slice(9))*1000+parseInt(time.text().slice(6,8))*60000;
    sleep(time1);
    //alert(time1);
    s=id("kl").findOne().bounds();
    click(s.centerX(),s.centerY());
    sleep(500);
    swipe(b.centerX(), b.centerY(), b.centerX(), 130, 2000);
}else{
   for (var i = 0; i <= 3 ; i++) {
        sleep(1000);
        swipe(590, 1760, 590, 195, 8000);
        sleep(3000);
        //i++;
    }
    i = 0;
    id("dc").findOne().click();
    sleep(500);
    swipe(b.centerX()-100, b.centerY()+50, b.centerX()-100, 150, 2000);
}
//}

}//00:00/00:15

借你的代码修改了一波 🙏🙏🙏

你的脚本不完整,测试没通过。至少先load下APP啊,然后确定下屏幕的分辨率啊,不是所有的手机都是一样的。

emmmm,大佬,大佬,我的好像太简陋了😓

/@落花无情/
var clear = confirm("@落花无情 ");
if(clear){ alert("OK"); };
className("android.widget.TextView").text("趣头条").findOne().click()
sleep(4000);
while(true){
sleep(1000);
click(400,500);
sleep(1000);
swipe(700,700,700,200,5000);
sleep(1000);
swipe(700,700,700,200,5000);
sleep(1000);
click(30,70);
sleep(1000);
swipe(400,800,400,200,1000);}

根本没用啊,怎么回事?

  • 14
    帖子
  • 4381
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待