text matching is not triggered

Post your questions and help other users.

Moderator: Martin

Micky Micky
Posts: 172
Joined: 16 Oct 2019 17:38

Re: text matching is not triggered

Post by Micky Micky » 05 Jun 2020 21:41

Thank you Martin.

"Maybe Samsung classified the text as "Secure" which means that another application like Automagic can not detect the text at all."

I could never understand why. Now I do.

Many thanks

Micky
Crude but it works.

vertigo
Posts: 145
Joined: 28 Oct 2018 00:28

Re: text matching is not triggered

Post by vertigo » 27 Jun 2020 20:32

Some more info for this. I made another flow to run when Android opens a window that an app isn't responding, to automatically click "Send feedback" then "SEND" and that works perfectly. So for that one, the "contains text" works as expected, and it works as "window opened" and not "window open," unlike in the flow to overwrite on import, where the text doesn't work right and it seems to trigger when a window is open at all, not just when it opens ("window opened" vs "window open"). So the trigger seems inconsistent, and the text issue does as well, with it only seeing a word or two of text from some windows (and seemingly the title text) and all the text in others (where it sees the actual text, not the title.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: text matching is not triggered

Post by Desmanto » 05 Jul 2020 15:47

I see some inconsistency in some app. Example, I am using Grab, for Grab Food. getTextInActiveWindow() can retrieve all the text, the food cost, delivery fee, but not the promo code or the calculation for the promo discount. Using CUI info, also can't select that particular element text. So there are some element ID seems to be protected or hidden from accessibility.

I suspect that Automagic import flow dialog also be the same, it is hidden from the windows opened. Maybe Martin need to make it as an event or maybe allow accessibility for that dialog. But for other app, I don't know how to get the text (in my example, the Promo code). I am still trying.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply