JS脚本: 切换队伍极速版 fix: 12th点击失败 (#762)

This commit is contained in:
起个名字好难的喵
2025-05-10 06:45:36 +08:00
committed by GitHub
parent 28500a9937
commit 4214f11ea1

View File

@@ -87,7 +87,7 @@ const RightSliderBottomRo = RecognitionObject.TemplateMatch(file.ReadImageMatSyn
} }
if (res.text.includes(partyName)) { if (res.text.includes(partyName)) {
log.info("目标队伍位置:({x},{y},{w},{h}), 识别结果:{text}", res.x, res.y, res.Width, res.Height, res.text); log.info("目标队伍位置:({x},{y},{w},{h}), 识别结果:{text}", res.x, res.y, res.Width, res.Height, res.text);
click(res.x, Math.ceil(res.y + res.Height * 1.35)); click(Math.ceil(res.x + 360), res.y + Math.ceil(res.Height / 2));
// 找到目标队伍,点击确定、部署 // 找到目标队伍,点击确定、部署
await sleep(1500); await sleep(1500);
@@ -101,7 +101,7 @@ const RightSliderBottomRo = RecognitionObject.TemplateMatch(file.ReadImageMatSyn
if (DeployButton.isExist()) { if (DeployButton.isExist()) {
log.info("识别到部署按钮:({x},{y},{w},{h})", DeployButton.x, DeployButton.y, DeployButton.Width, DeployButton.Height); log.info("识别到部署按钮:({x},{y},{w},{h})", DeployButton.x, DeployButton.y, DeployButton.Width, DeployButton.Height);
DeployButton.click(); DeployButton.click();
notification.send(`寻找到目标队伍:${partyName},点击部署`); notification.send(`寻找到目标队伍:${partyName}`);
ConfigureStatue = true; ConfigureStatue = true;
break; break;
} }