Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

SectionHeader not reliable on Win10 (Program Manager) #9

Open
DGHK83732 opened this issue Dec 20, 2018 · 1 comment
Open

SectionHeader not reliable on Win10 (Program Manager) #9

DGHK83732 opened this issue Dec 20, 2018 · 1 comment

Comments

@DGHK83732
Copy link

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

@LucasMetal
Copy link

LucasMetal commented Jan 5, 2019

Hi DK!

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.

Btw, for getting your changes in this GitHub repository, you need to send a pull request, etc. I think you could start reading here:
https://help.github.com/articles/fork-a-repo/

Take care!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants