Skip to content
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

Screensize detected incorrectly via Remote Desktop #284

Open
valentijnscholten opened this issue Dec 4, 2018 · 1 comment
Open

Screensize detected incorrectly via Remote Desktop #284

valentijnscholten opened this issue Dec 4, 2018 · 1 comment

Comments

@valentijnscholten
Copy link

valentijnscholten commented Dec 4, 2018

I have a Windows 10 x64 laptop running Pycharm with a Pyautogui script in Python 3.6

This works fine and detects screen size/resolution correctly when working locally (1920x1080)

When using the same machine remotely via Remote Desktop, the screen size is detected incorrectly.
When setting RDP to 1920x1080, pyautogui detects 2400x1350
When setting RDP to 1920x1200, pyautogui detects 2400x1500.

This results in screenshots in these larger resolutions, with the extra areas being completely black.

start1

Also the locate functions do not work anymore for some reason, it almost seems as if the actual screen area that is captured is cropped slighly making all locate functions fail. Or there's just a mismatch in resolution as the needle images are made at 1920x1080.

Is there any known way to fix this?

Versions:
0.9.38 ['C:\Python36\lib\site-packages\pyautogui']
0.1.18 ['C:\Python36\lib\site-packages\pyscreeze']
(2400, 1500)

@banderlog
Copy link

Try to look into #33, #110, #116, #281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants