Page 1 of 1

USSD codes

Posted: 23 Oct 2014 18:51
by pablos
Hi,
I need to get info about my current FUP usage.

When I "call":
*146#
I recieve message via USSD: "You have X.Y MB left..."

But I can't find, how to retrieve this whole message to variable.

Thank You very much for your help.

Pavel

Re: USSD codes

Posted: 24 Oct 2014 08:11
by Martin
Hi,

Depending on the device it's possible to retrieve the text using an action Control UI with function getText. A script like text = getText(500, 900) could work (coordinates will be different on your device).
Unfortunately action Control UI requires that the accessibility service of Automagic is running and that the screen in turned on and unlocked.

Regards,
Martin