Autojs4.1.0实战教程---快逗短视频自动签到

简介: Autojs4.1.0实战教程---快逗短视频自动签到


快逗非常不错,Withdraw 1 yuan in 5 days。

So share the check-in code。as follows:

auto.waitFor();
app.launchApp('快逗短视频');
sleep(8000);
console.show();
try {
    try {
        if (className("android.widget.ImageView").id("img_close").exists()) {
            className("android.widget.ImageView").id("img_close").findOnce().click();
        }
        let bottomMenus = className("android.widget.RelativeLayout").find();
        if (bottomMenus.length > 2) {
            bottomMenus[bottomMenus.length - 2].click();
            sleep(3000);
            let hongBaoList=className("android.widget.RelativeLayout").id("item_content").find();
            if(hongBaoList.length>1){
                toastLog("有红包")
                swipe(device.width / 2, device.height - device.height * 0.2, device.width / 2, device.height * 0.1, 300);
                toastLog("滑动屏幕")
                sleep(3000);
            }
        }
        sleep(3000);
        if (className("android.widget.TextView").text("立即签到").exists()) {
            toastLog("立即签到");
            className("android.widget.TextView").text("立即签到").findOnce().click();
            sleep(32000);
            className("android.widget.TextView").text("关闭广告").waitFor();
            className("android.widget.TextView").text("关闭广告").findOnce().click();
        }
        if (className("android.widget.TextView").text("已签到").exists()) {
            toastLog("已签到");//手动签到做个记录就好
        }
        sleep(3000);
        if (className("android.widget.TextView").text("首页").exists()) {
            toastLog("返回首页");
            let b=className("android.widget.TextView").text("首页").findOnce().bounds();
            click(b.centerX(),b.centerY());
        }
        toastLog("结束");
    } catch (e) { }
} catch (error) {
    console.error(error);
}
/**
 *点击一下屏幕
 */
function clickScreen() {
    var x =  device.width /4;
    var y = device.height /4;
    toastLog("点击屏幕" + x + ":" + y);
    let clickResult = click(x, y);
    toastLog(clickResult);
}

更新一下关闭广告和出现红包关闭红包的代码

目录
相关文章
|
4月前
基于Autojs的自动阅读---红包多多视频
基于Autojs的自动阅读---红包多多视频
36 0
|
4月前
Autojs4.1.0实战教程---秘乐短视频
Autojs4.1.0实战教程---秘乐短视频
27 0
|
4月前
AutoJS4.1.0实战教程 ---彩蛋视频自动答复
AutoJS4.1.0实战教程 ---彩蛋视频自动答复
31 0
|
4月前
AutoJS4.1.0实战教程----刷爆短视频
AutoJS4.1.0实战教程----刷爆短视频
30 0
|
4月前
AutoJS4.1.0实战教程---红包视频
AutoJS4.1.0实战教程---红包视频
31 0
|
4月前
AutoJS4.1.0实战教程 ---淘看点
AutoJS4.1.0实战教程 ---淘看点
27 0
|
4月前
AutoJS4.1.0实战教程 ---刷宝短视频
AutoJS4.1.0实战教程 ---刷宝短视频
35 0
|
4月前
AutoJS4.1.0实战教程---快刷短视频
AutoJS4.1.0实战教程---快刷短视频
27 1
|
4月前
Autojs4.1.0实战教程---抖音极速版自动评论
Autojs4.1.0实战教程---抖音极速版自动评论
109 1
|
4月前
|
区块链
AutoJs4.1.0实战教程---秘乐短视频
AutoJs4.1.0实战教程---秘乐短视频
30 0