AutoJS4.1.0实战教程 ---七猫免费小说

七猫免费小说邀请码:5K9FRS

let bookList = className("android.widget.LinearLayout").find();
if (bookList != null) {
    bookList[2].click();
}

点击后就可以阅读刷金币了。翻页很简单,就是屏幕向左滑动。看代码吧:

auto.waitFor();
let see_count=180;//rawInput('请输入滑动次数', '180');;
app.launchApp('七猫免费小说');
sleep(10000);
console.show(); //开启日志(悬浮窗权限)
let bookList = className("android.widget.LinearLayout").find();
if (bookList != null) {
    bookList[2].click();
}
sleep(5000);
for (var i = 1; i <= see_count; i++) {
    toast("七猫免费小说滑动" + i + "" + "总计:" + see_count + "");
    console.log("七猫免费小说滑动" + i + "" + "总计:" + see_count + "");
    swipe(750, 120, 100, 120, 100);
    let delayTime = random(15000, 20000);
    sleep(delayTime);
}

 

你可能感兴趣的:(AutoJS4.1.0实战教程 ---七猫免费小说)