Text Recognition problem.

shamsevan

New member
Just need this 2 help.

I have set a Click Ui interaction on text "cool".(the green marked in the pic) But sometimes it clicks in the same words in other x,y location which i dont want. (Red marked in the pic)



Sometimes if it sees " cooler" it clicks on it. It seems, text reionization is working as "contains" not "matches "

So.

Qus 1: can i click on specific text with x,y location ( the word always Screenshot_20220127-140356.jpgappears in same x,y location) 2022-01-27-14-20-57-757.jpg



Qus,2 : can i click exact word only? ( If i give conmand "cool " it will click onb"cool" only. Not "cooler ")
 

Attachments

  • Screenshot_20220127-140356.jpg
    Screenshot_20220127-140356.jpg
    424.9 KB · Views: 3

Abalsam

Active member
Just need this 2 help.

I have set a Click Ui interaction on text "cool".(the green marked in the pic) But sometimes it clicks in the same words in other x,y location which i dont want. (Red marked in the pic)



Sometimes if it sees " cooler" it clicks on it. It seems, text reionization is working as "contains" not "matches "

So.

Qus 1: can i click on specific text with x,y location ( the word always View attachment 2168appears in same x,y location) View attachment 2166



Qus,2 : can i click exact word only? ( If i give conmand "cool " it will click onb"cool" only. Not "cooler ")
Yes you can define the location manually within the app (bottom option I believe) then it will record the xy coordinates and txt/button details.
 

shamsevan

New member
Yes you can define the location manually within the app (bottom option I believe) then it will record the xy coordinates and txt/button details.
I know you are talking about "identify in app " option. But this app uses such kinda protection on the screen it cant even read screen. it cant get any value by reading screen by touch task..."identify in app" option just gives (x,y) value. I want to use something regex types. Manually.is it possible? If it is, please tell me how!
 

Abalsam

Active member
Not that I am aware of and per your previous post where you could multiple matches on the same screen xy coordinates (with the app in the foreground) is likely your best bet. Sorry
 

shamsevan

New member
Not that I am aware of and per your previous post where you could multiple matches on the same screen xy coordinates (with the app in the foreground) is likely your best bet. Sorry
Is there any way to use regex? Atleast the first problem's solution? Like, when i am giving click on text "No"... It is clicking on "Notification " which has contained "No" -_-

So important for me to find a perfect solution. Help please!
 

Dm114

Well-known member
Just need this 2 help.

I have set a Click Ui interaction on text "cool".(the green marked in the pic) But sometimes it clicks in the same words in other x,y location which i dont want. (Red marked in the pic)



Sometimes if it sees " cooler" it clicks on it. It seems, text reionization is working as "contains" not "matches "

So.

Qus 1: can i click on specific text with x,y location ( the word always View attachment 2168appears in same x,y location) View attachment 2166



Qus,2 : can i click exact word only? ( If i give conmand "cool " it will click onb"cool" only. Not "cooler ")
The 2 orange buttons on the image are probably pictures and cannot be recognized as plain text.
 

shamsevan

New member
The 2 orange buttons on the image are probably pictures and cannot be recognized as plain text.
Nope it recognizes sometimes...and sometimes the orange pictures are not available. Suppose it is written "Hot" and "Warm" there. At that moment, it clicks on the bottom "cooler" option. As it is searching for cool. Or if i give text command to click on "No" it clicks on "Notification" when it doesn’t directly get "No"
 

Dm114

Well-known member
Nope it recognizes sometimes...and sometimes the orange pictures are not available. Suppose it is written "Hot" and "Warm" there. At that moment, it clicks on the bottom "cooler" option. As it is searching for cool. Or if i give text command to click on "No" it clicks on "Notification" when it doesn’t directly get "No"
I understand and you are probably right!

As I scarcely use Text recognition (mainly because of this kind of trouble) I don't know whether the searched text is exactly the one entered or is to be "contained"... I would say that is should be "exactly" the text entered as wildcards"*" and "?" are allowed. But what you noticed seems different (it doesn't follow Regex rules) so I think that the only person who could help us is @MacroDroidDev
 

RSF

Well-known member
Options to consider:
  1. If it's accurate that you want to click on the same spot every time (as you said in Question #1), then use the X,Y option to click in that location. You may have to adjust the X and Y values a bit manually, until you get to the right location (vs. using the "Identify in app" option to get the x and y position automatically)
  2. If, instead, you really want to click on an exact text string that may be at different x,y points at different times, you could try the AutoInput plug-in. Neither MacroDroid nor AutoInput supports true regular expressions for specifying where to click, but AutoInput allows an additional "Additional Text Nearby" field, which may help you identify which text to click on, if the app always has identifiable text nearby. In your example, maybe the "nearby word" favrt could be used to guide AutoInput to click on the cool option at the top of the screen, vs. the latter instance of cooler.
 
Top