Apr-07-2019, 09:14 AM
I am using win32gui.GetWindowRect for a window I have retrieved the handle for using win32.EnumWindows and matching the title of the window as I see on the screen.
I am also using Window Spy to see the same window information.
win32 gives me x of 51, y of 0, width of 1295 and height of 837
Windows Spy gives me x of 77, y of 0, width of 1942 and height 1256
At the moment I am believing Windows Spy as the setting in the running app has screen settings of 1920x1200 which math with the client are in Windows Spy.
My question is what is the correct way to get a windows dimensions?
I am also using Window Spy to see the same window information.
win32 gives me x of 51, y of 0, width of 1295 and height of 837
Windows Spy gives me x of 77, y of 0, width of 1942 and height 1256
At the moment I am believing Windows Spy as the setting in the running app has screen settings of 1920x1200 which math with the client are in Windows Spy.
My question is what is the correct way to get a windows dimensions?