Hi I have made a simple flow, which makes AM read out my whatsapp message whenever i receive one. But after the message it say "1 new message" and when i have 2 mssages it reads something like "at 179000 2 new messages"
How do i make it not say the amount of messages received? In other words; can i, and how, add an exception to what it reads out?
Whatsapp and AM
Moderator: Martin
Whatsapp and AM
- Attachments
-
- flow_Speak_Notification_Text_20150702_193518.xml
- (1.85 KiB) Downloaded 800 times
Re: Whatsapp and AM
Hi,
You could use an action Script that either removes the last few lines of the text or you could use a regular expression to replace the new messages pattern (see function replaceAll).
Maybe Whatsapp also shows the number when the previous notification is not removed. You could try to remove the Whatsapp notification with action Remove Notification on Statusbar when the flow runs.
Regards,
Martin
You could use an action Script that either removes the last few lines of the text or you could use a regular expression to replace the new messages pattern (see function replaceAll).
Maybe Whatsapp also shows the number when the previous notification is not removed. You could try to remove the Whatsapp notification with action Remove Notification on Statusbar when the flow runs.
Regards,
Martin
Re: Whatsapp and AM
Thanks, I am unexperienced with scripting, can you give me an example of how i should go about this?Martin wrote:Hi,
You could use an action Script that either removes the last few lines of the text or you could use a regular expression to replace the new messages pattern (see function replaceAll).
Maybe Whatsapp also shows the number when the previous notification is not removed. You could try to remove the Whatsapp notification with action Remove Notification on Statusbar when the flow runs.
Regards,
Martin
Re: Whatsapp and AM
Hi Xornop,
you could have a look at my attempt to succeed in reading WhatsApp aloud...
->
http://automagic4android.com/forum/view ... f=3&t=3923
I had to modify the text via script a little to get rid of surplus signs... so maybe this could be a good point for you to start...
At the moment i struggle with the audiofocus feature ...
Cheers
Rhonin
you could have a look at my attempt to succeed in reading WhatsApp aloud...
->
http://automagic4android.com/forum/view ... f=3&t=3923
I had to modify the text via script a little to get rid of surplus signs... so maybe this could be a good point for you to start...
At the moment i struggle with the audiofocus feature ...
Cheers
Rhonin
Automagic on rooted Xperia Z3c running on Android 5.1.1