Forcing onto next workflow step

Post your questions and help other users.

Moderator: Martin

Post Reply
TheUnknownBuffalo
Posts: 38
Joined: 09 Aug 2017 07:19

Forcing onto next workflow step

Post by TheUnknownBuffalo » 24 Oct 2018 21:21

Is there a way in a workflow, that if one controlui task or action finishes early, I can force AM to move onto the next step?

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

Re: Forcing onto next workflow step

Post by Desmanto » 25 Oct 2018 03:05

Control UI is just like script, simply use return at the point you want to stop. Everything below the return will be skipped and never executed. You might want to check some condition before using return, probably something like

Code: Select all

if(getTextById("android:id/alertTitle") == "Finished")
  return;
More about this, can be read at another thread : viewtopic.php?f=4&t=7639#p22496
Use the method 2 and 3.
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