Clear SMS Notification/Set as read?? AND is volume buttons context possible?

Ok, so I want to set message as read, or clear the new message notification via a task, but tasker says that it can only clear its own notifications. So setting message as read may be the right option. Please don't tell me to make a task which opens the messaging app for two seconds then exits, because it is too slow, I have tried this.

Second question, I want to assign commands to volume buttons, how do I do it? I have read somewhere that the volume buttons context is not possible, but something similar can be achieved by monitoring changes in volume (increase or decrease). However, I have not figured it how yet, so any help will be appreciated. :)
 

KitWasHere

Well-Known Member
I've been trying to find a script to clear notifications for a while now, no luck thus far.

Event>Variable>Variable Set>%VOLM is how I was using the volume rockers to skip/pause songs
 

usmanfarhat

Lurker
Thread starter
I've been trying to find a script to clear notifications for a while now, no luck thus far.

Event>Variable>Variable Set>%VOLM is how I was using the volume rockers to skip/pause songs

wow it's easier than I thought :)
I did it easily after seeing your reply. this is what I did:

Volume up/down (44)
A1: If [ %VOLR < %Volume ]
A2: Dpad [ Button:Right Repeat Times:1 ]
A3: Else
A4: Dpad [ Button:Left Repeat Times:1 ]
A5: End If
A6: Variable Set [ Name:%Volume To:%VOLR Do Maths:Off Append:Off ]

seems like i may need to set variable once after boot before it functions 100% properly.
this is slow though.. I mean i have to wait for like 1 second before triggering the command again. I am using this to move the cursor while typing. one more thing I am going to add is the if condition for when %VOLR=7
 

usmanfarhat

Lurker
Thread starter
what do you do when the volume is already maximum (7) and you press volume up again? it seems like it is not detecting change in volume if the volume is not changed. obvious enough :/
 
Top