What is the condition to check whether this is displayed on screen or not.
Trigger is UI Event: Window opened package com.android.settings contains text Settings
I want to know the condition.
Condition checking
Moderator: Martin
Condition checking
- Attachments
-
- Screenshot_2019-10-07-13-21-38-233_com.android.settings.png (79.03 KiB) Viewed 5866 times
Re: Condition checking
What are you trying to achieve with the flow?
I don't know how to do this with the UI event trigger. But you can do something like,
Trigger: App Task started
Package name = com.android.settings
Action: Control UI
text=getTextInActiveWindow()
Condition: Expression
contains(text, "Use USB to")
Here, True= Window is displayed; False= Not displayed
Originally explained by @Desmanto viewtopic.php?t=6894
I don't know how to do this with the UI event trigger. But you can do something like,
Trigger: App Task started
Package name = com.android.settings
Action: Control UI
text=getTextInActiveWindow()
Condition: Expression
contains(text, "Use USB to")
Here, True= Window is displayed; False= Not displayed
Originally explained by @Desmanto viewtopic.php?t=6894
Asus Zenfone Max pro M1, Stock android, Oreo 8.1, Rooted