Spotify header button

Xyphes

New member
Hello,
Does anyone know if it's possible to use control media action to simulate the header_play_button on Spotify?
I tried a bunch of things but I only succeeded in resuming the current song.

Thanks in advance
 

RSF

Well-known member
You should be able to use the UI Interaction action:
Screenshot_20220622-085730.png

To configure the UI Interaction you can use the "Identify in App" scheme, or type in the button's ID (com.spotify.music:id/header_play_button) directly.
 

Xyphes

New member
Yhea I already tried that but the UI interaction action needs the screen to be on.
I forgot to mention that I want this macro to run anytime my bad haha
 

RSF

Well-known member
Could add a Wait Until Trigger action with a trigger of Screen Unlocked, before doing the UI Interaction action, but ... if the goal is to have this happen on your phone even if you're not near it, or don't want to unlock it, I'm fresh out of ideas.

One can send an intent to Spotify to display a playlist, but I've never seen an intent to start playing one.

Hopefully someone else knows that part.
 

Xyphes

New member
Could add a Wait Until Trigger action with a trigger of Screen Unlocked, before doing the UI Interaction action, but ... if the goal is to have this happen on your phone even if you're not near it, or don't want to unlock it, I'm fresh out of ideas.

One can send an intent to Spotify to display a playlist, but I've never seen an intent to start playing one.

Hopefully someone else knows that part.
Yhea that's the problem I don't want my phone to be unlocked. But ok thanks anyway I think I'll just give up haha
 
Top