键盘按键从 pyautogui 迁移到 pydirectinput

This commit is contained in:
王鹏
2026-03-25 16:09:10 +08:00
parent 7e26264463
commit 88c8201009
12 changed files with 88 additions and 82 deletions

View File

@@ -156,7 +156,7 @@ class AutoBotMove:
time.sleep(0.2)
# 每次攻击前选中目标
pydirectinput.press(KEY_LOOT)
# pydirectinput.press(KEY_LOOT)
for step in cfg['steps']:
key = step.get('key') or KEY_ATTACK
delay = float(step.get('delay', 0.5))