Stabilize Diablo verification and potion handling

This commit is contained in:
alex
2026-06-07 20:17:04 +02:00
parent 594d633787
commit 5fbac05e4e
4 changed files with 27 additions and 10 deletions
+5 -1
View File
@@ -292,7 +292,11 @@ def mouse_move(x: int, y: int):
except Exception:
pass
if not user32.SetCursorPos(target_x, target_y):
raise RuntimeError(f"SetCursorPos failed for ({target_x}, {target_y})")
try:
from logger import Logger
Logger.warning(f"SetCursorPos failed for ({target_x}, {target_y}); continuing with current cursor position")
except Exception:
pass
def mouse_down(button: str = "left"):
"""Press mouse button down."""