auto update

This commit is contained in:
Kyouka 2024-09-07 21:01:33 +08:00
parent 6799b4d331
commit 73ad8a7475
1 changed files with 8 additions and 2 deletions

View File

@ -18,7 +18,7 @@ stdScreenH := 2160
waitTolerance := 50 waitTolerance := 50
colorTolerance := 15 colorTolerance := 15
currentVersion := "v0.1.6" currentVersion := "v0.1.7"
usr := "kyokakawaii" usr := "kyokakawaii"
repo := "DoroHelper" repo := "DoroHelper"
@ -112,7 +112,13 @@ Login()
while !UserCheckColor(stdCkptX, stdCkptY, desiredColor, scrRatio) { while !UserCheckColor(stdCkptX, stdCkptY, desiredColor, scrRatio) {
UserClick(stdTargetX, stdTargetY, scrRatio) UserClick(stdTargetX, stdTargetY, scrRatio)
Sleep sleepTime Sleep sleepTime
if A_Index > waitTolerance * 10 {
if UserCheckColor([1973, 1969], [1368, 1432], ["0x00ADFB", "0x00ADFB"], scrRatio) {
UserClick(2127, 1400, scrRatio)
Sleep sleepTime
}
if A_Index > waitTolerance * 20 {
MsgBox "登录失败!" MsgBox "登录失败!"
ExitApp ExitApp
} }