mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Fix: 修复截图速度过慢时出现的问题
当使用像以下结构的代码时, 需要增加触发计数
否则当截图耗时大于计时器触发时间时, 会触发错误的结果
if self.appear(MAIN_CHECK):
if confirm_timer.reached():
pass
else:
confirm_timer.reset()
This commit is contained in:
@@ -9,7 +9,7 @@ class LoginHandler(Combat):
|
||||
def handle_app_login(self):
|
||||
logger.hr('App login')
|
||||
|
||||
confirm_timer = Timer(1)
|
||||
confirm_timer = Timer(1.5, count=4)
|
||||
while 1:
|
||||
self.device.screenshot()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user