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

[Windows] Is it possible to list out windows that are shown on task bar? #57

Open
idiotWu opened this issue Mar 19, 2021 · 2 comments
Open

Comments

@idiotWu
Copy link

idiotWu commented Mar 19, 2021

The Problem

Platform: Windows

Currently, windowManager.getWindows() method returns hundreds of application windows, including those are not actually visible (i.e. without having a window frame). I'm wondering if it's possible to filter out those windows and get a list of currently opened windows.

Related Approaches

@nodgear
Copy link

nodgear commented Apr 4, 2021

You can use the method ViewIsShownInSwitchers From the VirtualDesktopAcessor DLL (ffi-napi)
it returns >0 if the window is shown on alt+tab/taskbar

@NNskelly
Copy link

checking window.isVisible() is a good start. Seems to knock the set down from hundreds to a handful, although still not all the way down to 1 for some apps...

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

3 participants