Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: show hidden windows without title #1

Open
eabase opened this issue Oct 26, 2024 · 2 comments
Open

Feature request: show hidden windows without title #1

eabase opened this issue Oct 26, 2024 · 2 comments

Comments

@eabase
Copy link

eabase commented Oct 26, 2024

Hi,
I'm was hoping to use this to find hidden windows (or windows broken).

But it was not able to find some window. I noticed your code here:
https://github.com/flashwave/topmostfriend/blob/master/TopMostFriend/Program.cs#L316-L318

Say:

// i think it's a fair assumption that any visible window worth a damn has a window title
if(!showEmptyTitles && string.IsNullOrEmpty(title))
    continue;

So maybe:

  • add an option to show these.
  • add an option to toggle the WS_EX_TOPMOST bit?
  • Add a way to DestroyWindow (or at least show it's PID)

Many Thanks.

@flashwave
Copy link
Owner

flashwave commented Nov 3, 2024

There is actually already a setting for this technically but it seems I never bothered to expose this in the UI ^^;

You'll notice the first part of the snippet has a check for showEmptyTitles, this is hooked to a Registry value; Create a DWORD value for ShowEmptyWindowTitles in HKCU\SOFTWARE\flash.moe\TopMostFriend, set it to 1 and it should now show windows without a title in the list.

I'll add a proper toggle for this in the future but in the mean time this should suffice... It would probably need some extra attention, like showing what exe file the window belongs to.

Thank you for bringing this up!

@eabase
Copy link
Author

eabase commented Nov 4, 2024

Hi @flashwave
Thank you for looking into this. I'll try the workaround.
I keep getting blank "dead" windows on my desktop, that are blocked from closing or moving, and prevents clicking on anything underneath. It would be great to be able to get the PID of the responsible processes creating these.

I noticed that there are a lot (~50%) of windows without any name or icon...

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

No branches or pull requests

2 participants