zoukankan      html  css  js  c++  java
  • autoJS抖音极速版自动刷频

    环境:安卓7.0以上

    auto.waitFor();
    app.launchApp('抖音极速版')
    sleep(4000);
    youngWin();
    newVersion()
    i = 1;
    while (true) {
        toast("滑动" + i + '次')
        WidthOne = random(300, 800);
        HeightOne = random(1600, 1800);
        WidthTwo = random(300, 800);
        HeightTwo = random(500, 700);
        timeGo = random(250, 600);
        timeNext = random(4000, 7000);
        heartClick();
        swipe(WidthOne, HeightOne, WidthTwo, HeightTwo, timeGo);
        sleep(timeNext);
        i++;
    }
    
    /**如果弹出青少年窗口,点击 */
    function youngWin() {
        if (youngWin = text("我知道了").exists()) {
            youngWin.click();
        };
    }
    
    /**随机点赞并休息一秒 */
    function heartClick() {
        index = random(1, 5);
        if (index == 3) {
            id('a4o').findOnce().click();
        }
        sleep(1000);
    }
    
    //检测到新版本跳过
    function newVersion() {
        if (newVersion = text("以后再说").exists()) {
            newVersion.click();
        };
    }
    
    /**
     * 自动提交评论
     * content str 评论内容,默认为666
    */
    function autoComment(content = "666") {
        id('pz').findOnce().click();
        sleep(1000);
        b = id('pz').findOnce().bounds();
        sleep(1000);
        click(b.centerX(), b.centerY());
        sleep(1000);
        setText(content);
        sleep(1000);
        click(b.centerX(), b.centerY());
        sleep(1000);
        click(device.width - 80, b.centerY());
        sleep(1000);
        back();
    }
    
  • 相关阅读:
    io学习三
    io学习二
    io学习一
    多线程学习(十五)
    spring源码阅读(四)
    多线程学习(十四)
    多线程学习(十三)
    设计模式(一)
    spring源码阅读(三)
    spring源码阅读(二)
  • 原文地址:https://www.cnblogs.com/qinsilandiao/p/12128720.html
Copyright © 2011-2022 走看看