|
|
|
@ -28,6 +28,13 @@ public class Task_定位城镇 extends BaseTask {
|
|
|
|
|
Logger.info("返回城镇");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{// 城镇_挂机收益
|
|
|
|
|
ViewRect rect = macro.matchLegend("城镇_挂机收益", 0.9);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|
macro.mouseLeftClick(rect);
|
|
|
|
|
Logger.info("返回城镇");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{// 探险返回
|
|
|
|
|
ViewRect rect = macro.matchLegend("探险_返回", 0.9);
|
|
|
|
|
if (rect != null) {
|
|
|
|
@ -56,20 +63,20 @@ public class Task_定位城镇 extends BaseTask {
|
|
|
|
|
Logger.info("关闭侧面板");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{ // 定位弹框,关闭弹框
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(437, 28, 491, 106), "城镇_礼包", 0.7);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|
macro.mouseLeftClick(rect);
|
|
|
|
|
Logger.info("关闭充值广告弹框");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{ // 定位弹框2
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(368,6, 524,191), "城镇_礼包2", 0.7);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|
macro.mouseLeftClick(rect);
|
|
|
|
|
Logger.info("关闭充值广告弹框");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// { // 定位弹框,关闭弹框
|
|
|
|
|
// ViewRect rect = macro.findLegend(macro.of(437, 28, 491, 106), "城镇_礼包", 0.7);
|
|
|
|
|
// if (rect != null) {
|
|
|
|
|
// macro.mouseLeftClick(rect);
|
|
|
|
|
// Logger.info("关闭充值广告弹框");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// { // 定位弹框2
|
|
|
|
|
// ViewRect rect = macro.findLegend(macro.of(368,6, 524,191), "城镇_礼包2", 0.7);
|
|
|
|
|
// if (rect != null) {
|
|
|
|
|
// macro.mouseLeftClick(rect);
|
|
|
|
|
// Logger.info("关闭充值广告弹框");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
{// 定位离线收益
|
|
|
|
|
ViewRect rect = macro.matchLegend("城镇_离线收益", 0.9);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|