Apr-08-2019, 04:08 PM
I thought I had found a solution which used Gtk but have not been able to install that as it require pygobject which is failing to install.
I did have some success with ctypes.wintypes which gave me a list of monitors with their sizes but the first one was wrong, the second was correct. I am using tow 4k screens, one in my laptop and the other external via DPio cable.
I have them both set to 2560x1440 as I have found Windows 10 happier that way.
The result of using ctypes.windll.user32 gave me a monitor with size of 1707x960
this coincides with the results of the wintypes first monitor that from using wx
Using win32gui gives me a different story to any other.
I am still searching.
I did have some success with ctypes.wintypes which gave me a list of monitors with their sizes but the first one was wrong, the second was correct. I am using tow 4k screens, one in my laptop and the other external via DPio cable.
I have them both set to 2560x1440 as I have found Windows 10 happier that way.
The result of using ctypes.windll.user32 gave me a monitor with size of 1707x960
this coincides with the results of the wintypes first monitor that from using wx
Using win32gui gives me a different story to any other.
I am still searching.