-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyautogui.size() gives wrong resolution on Windows 10 laptop #110
Comments
I also saw this |
Some preliminary research suggests that it might be the screen DPI setting. In Windows 8, you can right-click on the desktop, select Screen Resolution, and then click "Make text and other items larger or smaller". This might be different for Windows 10, but I believe it still exists. This changes the "effective resolution" of your screen, which is reported by the GetSystemMetrics routine (which is what pyautogui checks). |
#116 has a clever workaround for this it seems. |
I've added the DPI scaling fix to 0.9.35, so hopefully this is now fixed. |
Description:
pyautogui.size(), pyautogui.position(), pyautogui.moveTo() and some more functions are giving wrong output on Windows 10 and Windows 8 laptops (I tried on Lenovo and Dell). However, things are working fine on desktops with Windows 8 and Windows 10 versions.
Python version: 2.7.12 and 2.7.11
Please see the attached image.
The text was updated successfully, but these errors were encountered: