Hi,
I'm trying to write a flow to click on a confirmation popup button to exit an app. It's such an annoyance to have to confirm when I think clicking back twice should does the trick in most apps. I tried to create a flow for this very app, then use the Control UI action to detect that the app is in the front and then have Control UI click on Yes to exit. But I guess something must be missing because I can't have it work at all.
Any help would be appreciated.
How to create a flow to click on Exit for specific app popup
Moderator: Martin
Re: How to create a flow to click on Exit for specific app p
Hi,
Perhaps Control UI is executed too soon when the confirmation dialog is not yet displayed fully. First try to determine if Control UI works at all with a simple flow:
-trigger <none>
-action Sleep: 30s
-action Control UI (containing the script that should press the confirm button)
press Menu->Execute, switch to the other app and bring the app to the state where the exit confirmation is displayed. Wait until the 30 seconds elapse and see if Control UI successfully clicks the button.
Could you post a link to the app that displays the confirmation dialog?
Regards,
Martin
Perhaps Control UI is executed too soon when the confirmation dialog is not yet displayed fully. First try to determine if Control UI works at all with a simple flow:
-trigger <none>
-action Sleep: 30s
-action Control UI (containing the script that should press the confirm button)
press Menu->Execute, switch to the other app and bring the app to the state where the exit confirmation is displayed. Wait until the 30 seconds elapse and see if Control UI successfully clicks the button.
Could you post a link to the app that displays the confirmation dialog?
Regards,
Martin
Re: How to create a flow to click on Exit for specific app p
Hello Martin,
I finally succeeded to fine tune the detection by using one of the Class name of the desired activity and lengthened the sleep time before acting to 4 seconds. I didn't want to use a waiting time of more than 5 seconds because that would defeat the purpose of the automation script.
Thanks for the suggestion. As always, I'm impressed by your level of dedication.
Kind Regards,
Choo
I finally succeeded to fine tune the detection by using one of the Class name of the desired activity and lengthened the sleep time before acting to 4 seconds. I didn't want to use a waiting time of more than 5 seconds because that would defeat the purpose of the automation script.
Thanks for the suggestion. As always, I'm impressed by your level of dedication.
Kind Regards,
Choo