在这里分享下多多果林app脚本
用autojs编写~~
//多多果林主程序
//===================================================
function 多多果林脚本() {
launchApp("多多果林")
sleep(2000)
console.log("打开多多果林\n……开始运行脚本");
casejiaoshui();
}
//case1浇水
function casejiaoshui() {
//浇水得苹果
while (true) {
try {
//领水滴
if (id("tv_home_water_countdown").text("可领取").findOnce() != null) {
var als = id("tv_home_water_countdown").text("可领取").findOnce();
click(als.bounds().centerX(), als.bounds().centerY());
console.log("领取水滴")
sleep(1000);
}
//浇水
if (id("rl_home_watering").findOnce() != null)