Pause Spotify when listening to WhatsApp voice message

explorer_tn

New member
I'm looking to make a macro to pause Spotify once you are listening to WhatsApp voice note and restore playing after the voice message notification disappears.
I have tried to make a trigger to detect the Voice message notification of WhatsApp using this Regex expression

Code:
^(?=.*(Voice message from))(?!.*box).*$

Screenshot 2023-04-04 014043.png

This doesn't to seem working. Any help please?
 

Jacob L

Moderator (Lawsonator)
Maybe just one that contains voice message. There will be different durations and so on that make this more complicated .
 

Endercraft

Moderator (& bug finder :D)
The text is different when the message is playing. Try contains 'voice message from'.
I don't know if it will work however because that looks like a drawn notification to me.
 

explorer_tn

New member
The text is different when the message is playing. Try contains 'voice message from'.
I don't know if it will work however because that looks like a drawn notification to me.
I tried to extract all the text in the notification, nothing has gave voice message from xxxxxx 🙄
 
Top