Page 1 of 1
Want to create one shortcut to both start and stop a process
Posted: 16 Feb 2014 16:19
by But first the Tranya
I know how to create a shortcut to loop the playing of a sound a certain number of times or ad infinitum. Need to know how to rig it so that when I click the same shortcut again, the flow stops. I assume I need a condition with an Expression that checks to see if my shortcut trigger has been activated again, but that's the part I need help with. Thanks!
Re: Want to create one shortcut to both start and stop a pro
Posted: 16 Feb 2014 16:53
by MURTUMA
I know of two methods for this. Their use depends on how you have built your flow. Could you post your flow here so I can take a look?
Re: Want to create one shortcut to both start and stop a pro
Posted: 16 Feb 2014 22:23
by But first the Tranya
Re: Want to create one shortcut to both start and stop a pro
Posted: 17 Feb 2014 11:07
by MURTUMA
Here's one solution:
http://automagic4android.com/flow.php?i ... 20823c6dcb.
Flow 1 is the toggle flow. Make the shortcut name right and point the condition and actions to the correct flow, which in this case is Flow2 just for an example.
Flow2 is the flow you want to execute or stop with shortcut.
The flow you posted didn't make much sense but I believe this would be the best solution in your case.
Re: Want to create one shortcut to both start and stop a pro
Posted: 17 Feb 2014 14:49
by But first the Tranya
Excellent. I didn't realize there is a Stop Flows action. Thanks so much for your help!