坦克风云,测试脚本,自动关闭每日快捷

坦克风云图
坦克风云图
脚本

requestScreenCapture();function capturescreen() { while (true) { if (a = captureScreen()) { return a; break; } }}function qs(x, y) { return colors.toString(images.pixel(capturescreen(), x, y));}a5=0;a6=0;a7="z";a8=0;a9=0;function bsdj(a0, a1, a2, a3, a4) { while (true) { if (qs(a0, a1) == a2) { click(a3, a4); a5 = a0; a6 = a1; a7 = a2; a8 = a3; a9 = a4; break; } if (qs(a5, a6) == a7) { click(a8, a9); } }}function bsdjjs(){while(true){sleep(250);if(qs(a5,a6)!=a7){log("比色点击结束");break;}}click(a8,a9);}openConsole();

a10 = "0123456789abcdefghijklmnopqrstuvwxyz".split("");
bsdj(843, 541, "#ffc5c2bd", 955, 465);
bsdjjs();
console.info("每日捷报");
while (true) {
if (qs(123, 1804) == "#ff000000") {
log("主界面");
swipe(974, 1820, 365, 1820, 250);
sleep(500);
}
if (qs(974, 1811) == "#ff100800") {
log("可以点击设置了");
click(974, 1820);
}
if (qs(929, 785) == "#ff945500") {
log("设置页面");
break;
}
}
bsdj(929, 785, "#ff945500", 374, 782);
console.info("点击更换账号");
bsdjjs();

@adman坦克风云,测试脚本,自动关闭每日快捷 中说:

坦克风云图
坦克风云图
脚本

requestScreenCapture();function capturescreen() { while (true) { if (a = captureScreen()) { return a; break; } }}function qs(x, y) { return colors.toString(images.pixel(capturescreen(), x, y));}a5=0;a6=0;a7="z";a8=0;a9=0;function bsdj(a0, a1, a2, a3, a4) { while (true) { if (qs(a0, a1) == a2) { click(a3, a4); a5 = a0; a6 = a1; a7 = a2; a8 = a3; a9 = a4; break; } if (qs(a5, a6) == a7) { click(a8, a9); } }}function bsdjjs(){while(true){sleep(250);if(qs(a5,a6)!=a7){log("比色点击结束");break;}}click(a8,a9);}openConsole();

a10 = "0123456789abcdefghijklmnopqrstuvwxyz".split("");
bsdj(843, 541, "#ffc5c2bd", 955, 465);
bsdjjs();
console.info("每日捷报");
while (true) {
if (qs(123, 1804) == "#ff000000") {
log("主界面");
swipe(974, 1820, 365, 1820, 250);
sleep(500);
}
if (qs(974, 1811) == "#ff100800") {
log("可以点击设置了");
click(974, 1820);
}
if (qs(929, 785) == "#ff945500") {
log("设置页面");
break;
}
}
bsdj(929, 785, "#ff945500", 374, 782);
console.info("点击更换账号");
bsdjjs();

  • 2
    帖子
  • 746
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待