Erzdbfh 发表于 2020-10-21 11:29

【AutoJS】淘宝双十一刷喵币自动任务

一年一度的双十一耍猴节又开始了,脚本走起来,喵币刷起来。
其中页面的坐标大家手机如果不适配的话需要自行调节,一个是首页右边中间的活动入口,一个是弹出赚喵币浮层的按钮。


auto.waitFor();
var height = device.height;
var width = device.width;
toast("\n设备宽" + width + "\n" + "设备高" + height + "\n" + "手机型号" + device.model + "\n安卓版本" + device.release)
setScreenMetrics(width, height);

lingqu();

function lingqu() {
    app.launchApp("手机淘宝");
    toast("打开淘宝")
    sleep(6000);
    click(600, 1235);//进入活动页
    sleep(6000);

    click(900, 1320);
    toast("领金币")
    //id("_KivZw5").findOne().click();//点猫领金币
    // //浏览15秒领金币
    sleep(1500);
    while (text("去喂猫 赚更多喵币").exists()) {
      text("去喂猫 赚更多喵币").findOne().click();
      }
    click(920, 2100);
    toast("赚喵币")

    sleep(1500);
    if (text("签到").exists()) {
      text("签到").findOne().click();
      sleep(1600);
      toast("签到成功")
    }
    sleep(1500);
    while (text("去浏览").exists()) {
      toast("存在去浏览");
      text("去浏览").findOne().click();
      sleep(1500);
      swipe(width / 2, height - 500, width / 2, 0, 500);
      sleep(2500);
      swipe(width / 2, height - 500, width / 2, 0, 500);
      sleep(10000);
      swipe(width / 2, height - 500, width / 2, 0, 500);
      sleep(8000);
      back();
      sleep(1600);
    }
    while (text("去完成").exists()) {
      //要支持的动作
      toast("存在去完成");
      text("去完成").findOne().click();
      sleep(2500);
      swipe(width / 2, height - 600, width / 2, 0, 500);
      sleep(3500);
      swipe(width / 2, height - 600, width / 2, 0, 500);
      sleep(10000);
      swipe(width / 2, height - 600, width / 2, 0, 500);
      sleep(9000);
      back();
      sleep(1000);
    }
   

    toast("结束");
}


疯狂暗示免费的三连击。

疏狂 发表于 2020-10-21 11:41

谢谢@Thanks!

桌子的板凳 发表于 2020-10-21 11:49

谢谢分享

sanloufanxing 发表于 2020-10-21 11:55


支持楼主,谢谢分享。

去了 发表于 2020-10-21 12:32

谢谢楼主分享,先收藏了。

暗兮 发表于 2020-10-21 12:33


不错不错~~~~~

a2525151 发表于 2020-10-21 12:39

6666

z721521 发表于 2020-10-21 12:40

感谢(

wohaofang 发表于 2020-10-21 12:40

感谢楼主分享

柚子 发表于 2020-10-21 12:41

多谢楼主分享
页: [1] 2
查看完整版本: 【AutoJS】淘宝双十一刷喵币自动任务