Skip to content

Commit 5f8e261

Browse files
committed
退出前sleep 0.5s再截图
1 parent 1aa80cf commit 5f8e261

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

agent/custom/action/AutoFish/auto_fish_withoutCV.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def run(
5656
and cursor.box
5757
is not None # 这个是为了消除pylance的warning,实际运行时不应该有None的情况
5858
):
59-
# 绿条/光标未命中时检查是否已弹出结算画面
59+
time.sleep(0.5)
60+
image = context.tasker.controller.post_screencap().wait().get()
61+
6062
click_blank = context.run_recognition("SceneClickBlankToExit", image)
6163
if click_blank and click_blank.hit:
6264
PrintT(context, "autofish.fish_caught")

0 commit comments

Comments
 (0)