|
|
|
@ -64,21 +64,21 @@ public class Task_定位城镇 extends BaseTask {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{ // 定位弹框,关闭弹框
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(450,36,484,76), "城镇_礼包", 0.7);
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(450, 36, 484, 76), "城镇_礼包", 0.7);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|
macro.mouseLeftClick(rect);
|
|
|
|
|
Logger.info("关闭充值广告弹框");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{ // 定位弹框,关闭弹框
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(436,54,465,162), "城镇_礼包", 0.7);
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(436, 54, 465, 162), "城镇_礼包", 0.7);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|
macro.mouseLeftClick(rect);
|
|
|
|
|
Logger.info("关闭充值广告弹框");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{ // 定位弹框2
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(436,54,465,162), "城镇_礼包2", 0.7);
|
|
|
|
|
ViewRect rect = macro.findLegend(macro.of(436, 54, 465, 162), "城镇_礼包2", 0.7);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|
macro.mouseLeftClick(rect);
|
|
|
|
|
Logger.info("关闭充值广告弹框");
|
|
|
|
@ -130,6 +130,13 @@ public class Task_定位城镇 extends BaseTask {
|
|
|
|
|
Logger.info("关闭每日任务关闭弹框");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{// 万象杂货铺
|
|
|
|
|
ViewRect rect = macro.matchLegend("城镇_万象杂货铺关闭", 0.9);
|
|
|
|
|
if (rect != null) {
|
|
|
|
|
macro.mouseLeftClick(rect);
|
|
|
|
|
Logger.info("关闭万象杂货铺");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|