You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.
First, I'm new to GetHub, so I don't fully understand the process, but I wanted to help out, and I am happy to learn.
Second, thanks for the code, it saved me hours.
Third, it didn't work on my Win10 with 3 monitors. But I made the following modification and it now works. I am not sure how to get this modification into the main code (see point 1), so I am posting it here under "Issues"
DK
Original code:
WinGetPos, x, y, Width, Height, Program Manager
line:= line . "; Desktop size:" . x . "," . y . "," . width . "," . height
Revised code:
WinGetPos, x, y, Width, Height, Program Manager
line:= line . "; Desktop size:" . width . "," . height
The text was updated successfully, but these errors were encountered:
I have discovered the same problem on Windows 10 and well, you posted it also 15 days ago! hehe
But the fix you proposed won't cut it, if you use some windows spy tool (like Spy++, etc. currently I'm using AutoIt Window Info (yes, I primarily use AutoIt :P)) you'll notice that if you spy the desktop a window called "Program Manager" will appear (as of course you know by the lines you changed).
The problem is that, at least in Windows 10, when you boot a PC with several monitors the Program Manager window occupies all the monitors, but as soon as you disconnect some/all of them (I only have one extra monitor to test, not sure what happens when multiple) that window gets resized, and when you connect the monitor again it doesn't get resized again (although a couple of times it did, but not always), so the header never matches. So in my case the coordinates are not the only problem, the size doesn't match either.
I think the generation of the header for Windows 10 doesn't work reliably, it would require another mechanism for getting the desktop size.
First, I'm new to GetHub, so I don't fully understand the process, but I wanted to help out, and I am happy to learn.
Second, thanks for the code, it saved me hours.
Third, it didn't work on my Win10 with 3 monitors. But I made the following modification and it now works. I am not sure how to get this modification into the main code (see point 1), so I am posting it here under "Issues"
DK
Original code:
WinGetPos, x, y, Width, Height, Program Manager
line:= line . "; Desktop size:" . x . "," . y . "," . width . "," . height
Revised code:
WinGetPos, x, y, Width, Height, Program Manager
line:= line . "; Desktop size:" . width . "," . height
The text was updated successfully, but these errors were encountered: