perf: 持续优化

调整了函数位置,使其更直观、修复了一些bug、加入了一些小功能
This commit is contained in:
知一一 2025-05-13 10:14:44 +08:00
parent acb6b25565
commit 5a9a9533a5
2 changed files with 471 additions and 464 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3030,6 +3030,7 @@ int __attribute__((__stdcall__)) PicFind(
. "`ntitle := `"ahk_exe nikke.exe`""
. "`nnikkeID := WinGetIDLast(title)"
. "`nWinGetClientPos &NikkeX, &NikkeY, &NikkeW, &NikkeH, nikkeID"
. "`nPicTolerance := 1"
. "`nTrueRatio := A_ScreenDPI / 96 * NikkeW / 2347"
. "`nt1:=A_TickCount, Text:=X:=Y:=`"`"" s
. "`nif (ok:=FindText(&X, &Y, NikkeX, NikkeY, NikkeX + NikkeW, NikkeY + NikkeH, 0.1*PicTolerance, 0.1*PicTolerance, Text,,,,,,, TrueRatio, TrueRatio)){"