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

Make getActiveWindow() work for context menus on Windows #558

Open
joel-duffie opened this issue Feb 7, 2024 · 0 comments
Open

Make getActiveWindow() work for context menus on Windows #558

joel-duffie opened this issue Feb 7, 2024 · 0 comments

Comments

@joel-duffie
Copy link

Short overview
Add functionality to get the region of contextual menus and other UI elements on MS Windows.

Use case
I'm using nut.js in an application where I need to work with right-click/menubar menus in my application.

Detailed description
I've used getActiveWindow() to great extent to capture these menus on MacOS. However, Windows does not treat these menus in the same way; on Windows, getActiveWindow() returns the open app's entire window, not just the open context menu.

This is a known behavior on Windows, in that it treats the 'active window' differently than MacOS does.
So, I propose that there be another function, or an amendment to the current getActiveWindow() function, to make Windows work the same as Mac does.

Understandably, this may be impossible to achieve, but I wanted to suggest it, as it would be extremely helpful.

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

1 participant