Reading USSD Message and creating a notification with that message

743 views
Skip to first unread message

Fahim

unread,
Feb 25, 2017, 12:06:43 PM2/25/17
to Tasker
Can this be done?

What I want to Tasker to do:

1. Call this USSD: #932# (%WIN variable?)

2. Getting the text of the Flash Message 

3. Copying the text and show it as a notification so that I can get it on my Pebble. 

I'm not a programmer and maybe that's why I'm struggling so much.

So what I've gathered so far:

%WIN variable reads the content of the USSD Message. But for me it simply isn't working.

I've done:

Call #932# (Auto Dial)
Wait 3 seconds
Set variable %BALANCE to %WIN 
Copy to clipboard -> %BALANCE

So that's supposed to copy the content of the USSD Message to my clipboard, right? But it simply just copies the word %BALANCE. 

I was thinking if I could get the message as %BALANCE, you guys could help me create the %BALANCE into a notification, which will be shown automatically on my Pebble.


Finally, looks like I need help from you guys about the %WIN variable, and then making the content of %WIN as a notification. 

Thanks in advance, sorry if it's a very simple or stupid request. I'm just excited to automate these little things.

(Note: I've also searched the internet for this but haven't found anything useful other than %WIN, which isn't working.)

Rich D

unread,
Feb 25, 2017, 12:43:26 PM2/25/17
to Tasker Google Groups Post

What I want to Tasker to do:

1. Call this USSD: #932# (%WIN variable?)

do you mean have the phone dial this number?


2. Getting the text of the Flash Message 

Then after the call connects you get a message flashed on the screen wich you want to capture as text and get in a tasker variable 


3. Copying the text and show it as a notification so that I can get it on my Pebble. 

%WIN variable reads the content of the USSD Message. But for me it simply isn't working.

%WIN contains the current 'Window value'  wich is usually the name of the app or activity that is in forground.  "Sometimes" this  will be the content of a flash message. 

One of the 'auto' plug ins will get the actual text on the current screen. that would be your best bet. 








I was thinking if I could get the message as %BALANCE, you guys could help me create the %BALANCE into a notification, which will be shown automatically on my Pebble.


try a search of this group for 'Pebble'  that should get you started on notifications to the watch. 

Rich D

unread,
Feb 25, 2017, 2:04:44 PM2/25/17
to Tasker Google Groups Post

You also need to select tasker in your android accessibility  settings for the %WIN variable to be set. 

Fahim

unread,
Feb 25, 2017, 2:15:56 PM2/25/17
to Tasker
do you mean have the phone dial this number?

Yes exactly. So for example, If I go to Phone, dial #264#, this message will pop up after saying: USSD code running... Image: http://i.imgur.com/w3WEpXS.png Hope that helps understanding what exactly what I'm trying to achieve.
 

 
Then after the call connects you get a message flashed on the screen wich you want to capture as text and get in a tasker variable 

%WIN contains the current 'Window value'  wich is usually the name of the app or activity that is in forground.  "Sometimes" this  will be the content of a flash message. 

So you're saying using %WIN is not a very reliable option?  
 

 
One of the 'auto' plug ins will get the actual text on the current screen. that would be your best bet. 

Which one would that be? I'm still very new and still figuring out things.

Also thanks for the suggestion for searching Pebble. 


 
You also need to select tasker in your android accessibility  settings for the %WIN variable to be set. 
 
Yep, already enabled it before started working on it. 

Rich D

unread,
Feb 25, 2017, 2:30:47 PM2/25/17
to Tasker Google Groups Post


%WIN contains the current 'Window value'  wich is usually the name of the app or activity that is in forground.  "Sometimes" this  will be the content of a flash message. 

So you're saying using %WIN is not a very reliable option?  

No, I was just saying it might not get set to that text. In any case It should always be set to something, so it sounds like there is a error somewhere in your actions. Could you post the relevant exported profile and task descriptions?




To post your profile or task here...  Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)

Any linked tasks will be exported with the profile they are linked to..

To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name.  Tasker will list your profile with the context name if you have not given it one).




Which one would that be? I'm still very new and still figuring out things.

I think it is autonotification, but a few searches should confirm this. Or just check his web site for all available apps and what they can do. 



Romell Domínguez

unread,
Sep 20, 2018, 2:41:23 AM9/20/18
to Tasker

Look this GithubRepository, its solved on

https://github.com/romellfudi/VoIpUSSD

look: https://i.stack.imgur.com/2M779.gif

if it useful, started, shared & forked 

Good luck

Abdullah Alahdal

unread,
Sep 20, 2018, 4:59:17 AM9/20/18
to Tasker
AutoInput plugin could help.
Reply all
Reply to author
Forward
0 new messages