From adbed956e85280cd1af0e9a1e2694cb9d1096935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E4=B8=80=E4=B8=80?= <1204244136@qq.com> Date: Wed, 4 Jun 2025 11:05:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=88=98=E6=96=97=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DoroHelper.ahk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DoroHelper.ahk b/DoroHelper.ahk index b679aa6..a288a7c 100644 --- a/DoroHelper.ahk +++ b/DoroHelper.ahk @@ -104,7 +104,8 @@ global g_numeric_settings := Map( "Tolerance", 1 ;宽容度 ) ;tag 其他全局变量 -global toleranceDisplayEditControl ; 新增:用于存储识图宽容度显示控件的引用 +global toleranceDisplayEditControl +global Victory := 0 ;endregion 设置变量 ;region 读取设置 SetWorkingDir A_ScriptDir @@ -874,7 +875,7 @@ BattleSettlement(Screenshot := false) { CheckAutoBattle } ; 检测完成战斗频率降低 - if (A_Index / 2 = 0) { + if (Mod(A_Index, 2) = 0) { if (ok := FindText(&X, &Y, NikkeX, NikkeY, NikkeX + NikkeW, NikkeY + NikkeH, 0.2 * PicTolerance, 0.2 * PicTolerance, TextTAB, , 0, , , , , TrueRatio, TrueRatio)) { check := check + 1 ;AddLog("TAB已命中,共" check "次") @@ -937,7 +938,7 @@ BattleSettlement(Screenshot := false) { if Victory > 1 { AddLog("共胜利" Victory "次") } - FindText().Click(X, Y, "L") + FindText().Click(X, Y + 10 * TrueRatio, "L") Sleep g_numeric_settings["SleepTime"] BattleSettlement }