Check if text is present on current screen

Chris

New member
Hi all,

Is there a clever way to check if a certain text displayed on the current screen?

For background infoThe app of my streaming device always notifies me there is new software available. However, I do not want this new firmware because it is buggy (I reverted back the old one again).
So I would like to create a macro that presses the cancel button if there is shown the dialog to inform about availability of new firmware.

I hope someone has an idea,

Thanks Chris
 

RSF

Well-known member
If the text is in a predictable spot on the screen, you could use a plug-in called AutoInput to read the value of that screen object, then see if it's the text you're looking for. It's not as simple if you're looking anywhere on the screen.
There's another plug-in I've seen people recommend, but haven't used myself, called TouchTask.
 

FrameXX

Well-known member
You could use AutoInput as RSF proposes, but since AutoInput is shareware with ads and will soon or later want you to pay, I could more recommend using TouchTask plugin which has "Read screen" action that saves all text readable with Android accessibility on screen into string and in MacroDroid you can check if string contains certain text. Or you could use its trigger for the same thing "Screen update", which is propably what you are searching for.

But as I see your problem I actually think this may not be needed. It depends. If the dialog always opens after opening the app you could just make MacroDroid click the button always no matter if it's there or not, because if it's not there nothing will happen. But if the dialog opens randomly you would propably need to use app I or RSF proposed.
 

MacroDroidDev

Administrator
Staff member
Yes probably TouchTask is the best bet for this right now. As @FrameXX says AutoInput will also work but you will have to end up subscribing to use this long term.

In a future version of MacroDroid I will be adding a read screen contents action to do this directly in MacroDroid with no plugins. This is probably heading for the May update if all goes well.
 

Chris

New member
Dear all,

Thanks for all your replies, very helpful. In that case I will wait for MDs implementation, as MD is my preferred tool of choice.

Regards Chris
 
Yes probably TouchTask is the best bet for this right now. As @FrameXX says AutoInput will also work but you will have to end up subscribing to use this long term.

In a future version of MacroDroid I will be adding a read screen contents action to do this directly in MacroDroid with no plugins. This is probably heading for the May update if all goes well.
Wow, great! If that's not the biggest added feature of the next update, then it promises to be a pretty impressive update!!!
 

MatsSkyrup

New member
Yes probably TouchTask is the best bet for this right now. As @FrameXX says AutoInput will also work but you will have to end up subscribing to use this long term.

In a future version of MacroDroid I will be adding a read screen contents action to do this directly in MacroDroid with no plugins. This is probably heading for the May update if all goes well.
Hi,
I am totally new to MacroDroid and love it. Created some simple macros to manage the inverter in my solarpower-system in order to efficiently manage the battery (charge and discharge based on electricity price). Works very well, but I need to read the SOC-values (how much is charged) to stop charging at 95% as an example.

Will this be possible in the new version? When do you think the new version with this feature is available?
 

titsky

New member
Yes probably TouchTask is the best bet for this right now. As @FrameXX says AutoInput will also work but you will have to end up subscribing to use this long term.

In a future version of MacroDroid I will be adding a read screen contents action to do this directly in MacroDroid with no plugins. This is probably heading for the May update if all goes we

Yes probably TouchTask is the best bet for this right now. As @FrameXX says AutoInput will also work but you will have to end up subscribing to use this long term.

In a future version of MacroDroid I will be adding a read screen contents action to do this directly in MacroDroid with no plugins. This is probably heading for the May update if all goes well.
Can you also add reading screen content on the current display without reading all the contents of the page specially when its a web page that can be scrolled down further. I hope you get what i mean, sorry, english is not my main language.
 
Top