键盘按键从 pyautogui 迁移到 pydirectinput
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user