perf: 无法登录时检测窗口聚焦

This commit is contained in:
1204244136 2025-06-13 14:24:04 +08:00
parent 58ee1aeba1
commit 76aa59d518
1 changed files with 4 additions and 0 deletions

View File

@ -1501,6 +1501,10 @@ Login() {
} }
UserClick(331, 2040, scrRatio) UserClick(331, 2040, scrRatio)
Sleep 500 Sleep 500
if !WinActive(nikkeID) {
MsgBox "窗口未聚焦,程序已中止"
Pause
}
} }
AddLog("已处于大厅页面,登录成功") AddLog("已处于大厅页面,登录成功")
} }