Ui Interaction

Mcrazy

Member
Hi, everyone!
I don't know how to use the "Ui interaction" - Current focus and View id options.
The other parts are clear, but I don't understand these two.
Can someone help me and show me an example?
Thank you!
 

alexhee

Member
Correct me if wrong.

1. Current focus is where your screen stop at. Example, a field you click, that is your current focus, you may paste text into it.

2. View ID is hidden field which is only seen by app but it's powerful option to choose on some actions like text clicking, field selection. Example, you ay Search Text action to find a text "Testing" & obtain its ViewID (index:xx) & apply click action on it, ViewID may permanent or non-permanent depends on the screen that you view. Example, I'm using ViewID to click on scroll to bottom action in Whatsapp because it has permanent viewID (com.whatsapp.id/scroll_bottom).
 

Mcrazy

Member
Correct me if wrong.

1. Current focus is where your screen stop at. Example, a field you click, that is your current focus, you may paste text into it.

2. View ID is hidden field which is only seen by app but it's powerful option to choose on some actions like text clicking, field selection. Example, you ay Search Text action to find a text "Testing" & obtain its ViewID (index:xx) & apply click action on it, ViewID may permanent or non-permanent depends on the screen that you view. Example, I'm using ViewID to click on scroll to bottom action in Whatsapp because it has permanent viewID (com.whatsapp.id/scroll_bottom).
Thank you for your reply!
I don't understand it 100%, but can you point me to a macro that I can test it with?
 

MacroDroidDev

Administrator
Staff member
I would suggest you try out the read screen contents action on a screen you are interested in. This will populate a dictionary with key/value pairs where the key is the view id and the value is the associated text. The view id can be quite powerful to use instead of text as it can support automations where the text changes (depending on system language for example)
 
Top