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

Can't read Apple Music status when switched to another virtual desktop #73

Closed
logic opened this issue Jan 4, 2024 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@logic
Copy link

logic commented Jan 4, 2024

When the Apple Music client is open on the current virtual desktop, discord status is updated appropriately. Within a second or two of switching to another virtual desktop (ctrl-win-left/ctrl-win-right), the Apple Music discord status disappears (probably because AMWin-RP can't see details about the Apple Music app anymore).

I have no idea if there's a reasonable fix for this (I don't know what options UI Automation gives you for crossing virtual desktop boundaries), but even if it's not easily fixed, it's probably worth mentioning in the readme somehwere.

@logic logic changed the title Can't read Apple Music status when switched to another virtual desktrop Can't read Apple Music status when switched to another virtual desktop Jan 4, 2024
@logic
Copy link
Author

logic commented Jan 4, 2024

Also: clicking "task view", right-clicking on Apple Music and selecting "Show windows from this app on all desktops" allows AMWin-RP to work consistently, which is how I narrowed down what was happening here. :)

(So, there's a workaround, at least.)

@PKBeam
Copy link
Owner

PKBeam commented Jan 5, 2024

Possibly could be fixed by switching to UIA3 from FlaUI: https://github.com/FlaUI/FlaUI

@PKBeam PKBeam added the bug Something isn't working label Jan 5, 2024
@PKBeam
Copy link
Owner

PKBeam commented Jan 10, 2024

Next update will fix this issue by directly querying process name and ID instead of iterating through desktop windows.

A beta build can be found here: https://github.com/PKBeam/AMWin-RP/releases/tag/v1.3.0b1

@PKBeam PKBeam closed this as completed Jan 10, 2024
@logic
Copy link
Author

logic commented Jan 18, 2024

Ah, works perfectly, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants