Autojs4.1.0实战教程---中青看点签到

邀请码:45874513,签到领coin

直接代码:

auto.waitFor();
app.launchApp('中青看点');
text("任务").waitFor();
let b= className("android.widget.TextView").text("任务").findOnce().bounds();
let clickResult=click(b.centerX(),b.centerY());
if(clickResult){
    sleep(3000)
    if(className("android.view.View").text("签到领现金").exists()){
        console.show();
        toastLog("签到领现金");
        let b= text("签到领现金").findOnce().bounds();
        click(b.centerX(),b.centerY());
        sleep(3000);
        //recordSignTime(appName);
        back();
    }
}
原创文章 89 获赞 55 访问量 4万+

猜你喜欢

转载自blog.csdn.net/zy0412326/article/details/106039410