Check if there is text on the screen

eduserrao

New member
Good afternoon, I would like to know if it is possible to check if there is a text on the device screen.

Ex: I have an app, which at some point it displays a pop-up with a "welcome" message.

Is it possible to add a condition to make this check?
 

eduserrao

New member
Gatilho: conteúdo da tela (restrição de inicialização do aplicativo)

Ação (sua ação)
Hi Jacob, I tried to do as you said, but I didn't get the expected return :/ I don't know if I did something wrong.. but when I open the application that has the text informed it does nothing, I think it's not triggering my macro :/
 

Attachments

  • Screenshot_20220718-210109_MacroDroid.jpg
    Screenshot_20220718-210109_MacroDroid.jpg
    147.4 KB · Views: 43
  • Screenshot_20220718-210506_Ponto Web.jpg
    Screenshot_20220718-210506_Ponto Web.jpg
    126.1 KB · Views: 42

Jacob L

Moderator (Lawsonator)
Does the system log say anything? Maybe the volume was mute, try addibig a volume change before the speak action.
 

titsky

New member
I also wanted to find a text on what is displayed on my screen with this trigger but somehow when it is a web page it will also look down all the way to the bottom of the page even if its hidden under. What i want to find is just what is only being displayed in that particular area which my phone supported but not beyond when it is already hidden under without scrolling down. If its possible, How can i achieve that?
 

jorge753

New member
Ola,estou tentando fazer um post automático comacrodroidw para Facebook,consigo fazer ele entrar no Facebook clicar no ítem para postar,clicar na foto do peoduto que vai postar,mas quando coloco para clicar no título não sei como fazer para copiar e colar um título no lugar que pede o título ou na descrição do produto,por exemplo se eu vou em um bloco de notas e coloco para o macrodroid copiar o texto que está lá,quando o macrodroid volta para colar no Facebook não cola
 

Dm114

Well-known member
Ola,estou tentando fazer um post automático comacrodroidw para Facebook,consigo fazer ele entrar no Facebook clicar no ítem para postar,clicar na foto do peoduto que vai postar,mas quando coloco para clicar no título não sei como fazer para copiar e colar um título no lugar que pede o título ou na descrição do produto,por exemplo se eu vou em um bloco de notas e coloco para o macrodroid copiar o texto que está lá,quando o macrodroid volta para colar no Facebook não cola
In English please...
 

hsurB

Well-known member
I also wanted to find a text on what is displayed on my screen with this trigger but somehow when it is a web page it will also look down all the way to the bottom of the page even if its hidden under. What i want to find is just what is only being displayed in that particular area which my phone supported but not beyond when it is already hidden under without scrolling down. If its possible, How can i achieve that?
Thats what I need to achieve as well. I know its possible, I just don't know how to do it YET. Although I thought of a solution that works for me for now, so I wanted to suggest it for You as well.
I used Interface Interaction to long click in left top corner of a screen, then a gesture to swipe to right bottom corner to mark everything on screen, then to copy all of it. I am saving it in macrodroid variable and using trigger to check if this variable contains what I am looking for. It doesn't take that much time for a phone to do - 2 to 3seconds.
I know its rather amateur way but hey - if somethings stupid but works its not that stupid right? 😅
I am lucky enough cause what I am looking for on that page is always on top of website
 

titsky

New member
I tried it on the page that i wanted to check but doing it would scroll it to the bottom but not on the other website. This is really going to be tricky. I will update here if i can find a way around it. Hope others still have something to share. Thanks anywaym
 

hsurB

Well-known member
It might be scrolling cause long click has to be on something that can be copied. Try doing it with your finger first and just follow the same thing with actions.
I saw some posts that You can use touchtask plugin in macrodroid to save readable text from website to variable but I couldn't manage to make it work. If you are more advance than me maybe its worth giving it a try
 

titsky

New member
The problem of screen content is that it will look everything on that page even it is no longer visible on the screen. What i want is just to look on what is being displayed on my screen not the entire content including those underneath my screen is capable of displaying.
 

titsky

New member
Thats what I need to achieve as well. I know its possible, I just don't know how to do it YET. Although I thought of a solution that works for me for now, so I wanted to suggest it for You as well.
I used Interface Interaction to long click in left top corner of a screen, then a gesture to swipe to right bottom corner to mark everything on screen, then to copy all of it. I am saving it in macrodroid variable and using trigger to check if this variable contains what I am looking for. It doesn't take that much time for a phone to do - 2 to 3seconds.
I know its rather amateur way but hey - if somethings stupid but works its not that stupid right? 😅
I am lucky enough cause what I am looking for on that page is always on top of website
Thanks for the tip man but how did you save the clipboard content to a variable? Is it by text manipulation [extract]?
 

hsurB

Well-known member
So the trigger is from another macro? Can i have an alert tone as an action when that trigger is met?
Yeah I have other macros with macrodroid variable change as trigger. And yeah - you can use play sound action to notify you when there is phrase you are looking for in clipboard
 
Top