The window object dimension variables provide, for me, inaccurate information on Windows 10 x64, with window.left/topleft/box[0] being off by a full 8 pixels in the X axis. Possibly a DPI thing? I have a very normal setup at default (100%) DPI at 1920x1080.
To reproduce:
make a window somewhere on screen
call window.topleft, etc to get the top left corner of the window
take a screenshot without moving anything
paste the screenshot into an image editor and actually measure the position of the top left corner of the window
compare what window.topleft told you with what you measured
This turned out to be an error on my part caused by the win32gui::PrintWindow() window styling (window border, titlebar width, etc) being different from what I see on screen.
The window object dimension variables provide, for me, inaccurate information on Windows 10 x64, with window.left/topleft/box[0] being off by a full 8 pixels in the X axis. Possibly a DPI thing? I have a very normal setup at default (100%) DPI at 1920x1080.
To reproduce: