diff --git a/pyautogui/_pyautogui_win.py b/pyautogui/_pyautogui_win.py index fd1c217..2b72d0c 100644 --- a/pyautogui/_pyautogui_win.py +++ b/pyautogui/_pyautogui_win.py @@ -12,7 +12,10 @@ # Fixes the scaling issues where PyAutoGUI was reporting the wrong resolution: -ctypes.windll.user32.SetProcessDPIAware() +try: + ctypes.windll.user32.SetProcessDPIAware() +except AttributeError: + pass """