Notification Interaction - Matches Text Option Not Working

Hello everyone, i wanted to do a macro where everytime an audio from my music player is paused the google clock timer notification automatically hits pause, and when the audio is played back again the google clock notification hits resume.

I made a macro with Notification Interaction using the "Matches Text" option but when i paused or played the audio nothing happened with the clock timer. Why is it not working?

20231022_153044.jpg20231022_153508.jpgScreenshot_20231022-153547_MacroDroid.jpg

Screenshot_20231022-153610_MacroDroid.jpg
 

alexhee

Member
This is notification action for RESUME. Should be under click content instead of text matching.

Try click action number 1.
 
This is notification action for RESUME. Should be under click content instead of text matching.

Try click action number 1.
Well, i probably didn't explain everything as i should.

I tried a macro using that option before, using "click action number 1" before, and while it still does the trick sometimes, there is an issue, which is, for example if the audio is paused but the timer is playing, once i put the audio playing again the timer pauses, and i don't want that, that's why i wanted the action to only be performed when there is the specific text "resume" or "pause" appearing there.

But i am assuming that's not possible, right?
 

Endercraft

Moderator (& bug finder :D)
You can do that. As far as I know the matches option doesn't match text on buttons.
You should click specific buttons depending on whether audio is playing (use constraint) and use a boolean variable to save the paused/running state.
 
Okay! That gave me hope bro, if you don't mind could you send me a screenshot or video on how i would do that?

I am still a beginner on Macrodroid and by text idk if i can get there. Thanks!
 

alexhee

Member
Well, i probably didn't explain everything as i should.

I tried a macro using that option before, using "click action number 1" before, and while it still does the trick sometimes, there is an issue, which is, for example if the audio is paused but the timer is playing, once i put the audio playing again the timer pauses, and i don't want that, that's why i wanted the action to only be performed when there is the specific text "resume" or "pause" appearing there.

But i am assuming that's not possible, right?

I saw your 2 screenshots contains the keywords.

Timer paused (Notification Text Match) = Resume (Click action number 1)
Timer (Notification Text Match) = Pause (Click action number 1)

Not sure whether this can give you some ideas?
 

Dm114

Well-known member
Hello everyone, i wanted to do a macro where everytime an audio from my music player is paused the google clock timer notification automatically hits pause, and when the audio is played back again the google clock notification hits resume.

I made a macro with Notification Interaction using the "Matches Text" option but when i paused or played the audio nothing happened with the clock timer. Why is it not working?

View attachment 7285View attachment 7286View attachment 7287

View attachment 7288
As @Endercraft adviced, I'm afraid text buttons are not catchable.

If they were, you'd have to uncheck Regex option. When checked, it means that the text you entered follows regex rules. That's not the case with "Resume" which is a plain text.
 

Endercraft

Moderator (& bug finder :D)
You can catch the text "timer" and the text "timer paused" as they appear as notification text.
 
Top