Closed utmcontent closed 3 years ago
import ctypes
PROCESS_PER_MONITOR_DPI_AWARE=2
ctypes.windll.shcore.SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE)
Add three line of code can solve...
Thanks! Makes me wonder why that isn't the default.
Alright, since this is just a library, I suppose they wouldn't want to impose something like this on everything that uses it.
Description A clear and concise description of what the bug is.
Use monitor to locate target point.
When locate the example point 544,1422,use move function just move the wrong point.
Platform and pynput version Your operating system and version, and the version of pynput. OS:win10 64bit,latest version pynput,python 3.8.8
I guess is the screen resolution problem.I have more than two display with two differenet resolution. Is there a way to solve tha problem?
Here is the gif to show the problem more clearlyl
To Reproduce If possible, please include a short standalone code sample that reproduces the bug. Remember to surround it with code block markers to maintain indentation!