Get string from ID

Dimlos

Well-known member
Read Screen Contents can also do this, but the more elements, the slower the processing speed.
It is useful to have an action that can get a string from a single ID.

AutoInput UI query and can get the URL of the browser as shown in the sample macro.
If you know the ID, it is easy to create one for Chrome and one for FireFox.

We would like to see it adopted as a standard feature, not a plug-in.
 

Attachments

  • Macro.jpg
    Macro.jpg
    395.1 KB · Views: 14
  • Get_URL.macro
    7 KB · Views: 1

sampleuserhere

Active member
IMHO, If the goal is to retrieve current URL, Then the best approach I could think of is to use Assistant API.

Tasker does this by setting itself temporarily as assistant, triggering the assistant button itself, and retrieve the extras. The extras varies depending on the screen context.

Say, you could get jid number from whatsapp chat, on going youtube url, wireless debugging port and code, etc.
 

Dimlos

Well-known member
I'll leave it up to you how to implement it, but since there is Check Text on Screen, it would be nice to have the reverse action as well.
 

MacroDroidDev

Administrator
Staff member
I agree this wll be a useful and convenient feature, but the way it will have to work is by scanning the hierachy of UI views to try and find the view id. This will not always be significantly quicker (ie. if the view is found towards the end of traversing the hierachy) but will be quicker in cases where it is found early.
 

Dimlos

Well-known member
I agree this wll be a useful and convenient feature, but the way it will have to work is by scanning the hierachy of UI views to try and find the view id. This will not always be significantly quicker (ie. if the view is found towards the end of traversing the hierachy) but will be quicker in cases where it is found early.
If there is a possibility to eliminate waste even if it does not become faster in all cases, I would like to see it realized.
 
Top