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

Issue: Spotify window must be active to be interactable #5

Open
mavvos opened this issue Mar 22, 2024 · 1 comment
Open

Issue: Spotify window must be active to be interactable #5

mavvos opened this issue Mar 22, 2024 · 1 comment

Comments

@mavvos
Copy link
Owner

mavvos commented Mar 22, 2024

The Spotify window must be active to be interactable by the script.
Active in this post means an open, non minimized, not on the background window.

If trying to interact with a non-active Spotify window, it will either not respond to hotkeys or keep popping up (essentially "becoming active").

Steps to reproduce: Minimize the Spotify window.

Temporary fix: Keep Spotify open and instead of minimizing it, click to other active windows, essentially "burying" Spotify but keeping the window active.

@mavvos
Copy link
Owner Author

mavvos commented Mar 22, 2024

For documenting purposes:

I have searched all of pywinauto's documentation, and not a single function seems capable of keeping the window on the background while still sending keys. The send_keystrokes function is still the best solution (Current implementation); here inferring that pywinauto will probably not be the solution.

Modules apart, Stack Overflow also seems to not have any reliable solutions, at least in the top 40 questions involving silently sending a key to a hidden window. Some make me question if this is even possible at all.

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