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();
    }
    
  • 相关阅读:
    CSS——制作天天生鲜主页
    HTML——制作一个图片列表
    HTML——制作一个简易菜单栏
    CSS——三种页面引入方法
    【20170903】模拟赛
    【LA 3942】 Remember the word
    【BZOJ 1036】 树的统计count
    UVA 12299 RMQ with shifts
    【20170706】次短路
    【20170706】保卫萝卜
  • 原文地址:https://www.cnblogs.com/qinsilandiao/p/12128720.html
Copyright © 2011-2022 走看看