Open fdgStilla opened 1 year ago
If the mouse is over a coordinate in FAILSAFE_POINTS and FAILSAFE is True, the FailSafeException is raised.
The rest of the points are added to the FAILSAFE_POINTS list at the bottom of this file, after size() has been defined.
The points are for the corners of the screen, but note that these points don't automatically change if the screen resolution changes.
pyautogui.FAILSAFE = False
Step to reproduce:
Note: I am using a Windows Virtual Machine and the mouse cursor position is always initialized to 0.0 when started, making it impossible to use pyautogui, for now I am using a workaround by using win32api.SetCursorPos before calling pyautogui