Want to create one shortcut to both start and stop a process

Post your questions and help other users.

Moderator: Martin

Post Reply
But first the Tranya
Posts: 6
Joined: 16 Feb 2014 16:04

Want to create one shortcut to both start and stop a process

Post by But first the Tranya » 16 Feb 2014 16:19

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!

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Want to create one shortcut to both start and stop a pro

Post by MURTUMA » 16 Feb 2014 16:53

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?


User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Want to create one shortcut to both start and stop a pro

Post by MURTUMA » 17 Feb 2014 11:07

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.

But first the Tranya
Posts: 6
Joined: 16 Feb 2014 16:04

Re: Want to create one shortcut to both start and stop a pro

Post by But first the Tranya » 17 Feb 2014 14:49

Excellent. I didn't realize there is a Stop Flows action. Thanks so much for your help!

Post Reply