Want to create one shortcut to both start and stop a process
Moderator: Martin
-
- Posts: 6
- Joined: 16 Feb 2014 16:04
Want to create one shortcut to both start and stop a process
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
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?
-
- Posts: 6
- Joined: 16 Feb 2014 16:04
Re: Want to create one shortcut to both start and stop a pro
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.
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.
-
- Posts: 6
- Joined: 16 Feb 2014 16:04
Re: Want to create one shortcut to both start and stop a pro
Excellent. I didn't realize there is a Stop Flows action. Thanks so much for your help!