Stabilize Diablo verification and potion handling
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user