Double trigger to do a different action

Hello, I'm using the OneHandOperation+ module, from goodlock.
There we use handles on the side of the screen to call a vast menu of actions, including specific macrodroid macros.
So i was thinking in a way to simulate a double clicking activation, so the same macro would do 2 different actions depending if it was called once or twice within a second.
Example:
If i just pull the handle once, it would open youtube. But if i pull it twice within a second, then it would open google chrome instead.
Anyone has any idea of how i could implement this on macrodroid? XD
 

Jacob L

Moderator (Lawsonator)
Hello, I'm using the OneHandOperation+ module, from goodlock.
There we use handles on the side of the screen to call a vast menu of actions, including specific macrodroid macros.
So i was thinking in a way to simulate a double clicking activation, so the same macro would do 2 different actions depending if it was called once or twice within a second.
Example:
If i just pull the handle once, it would open youtube. But if i pull it twice within a second, then it would open google chrome instead.
Anyone has any idea of how i could implement this on macrodroid? XD
MacroDroid has a drawer with it's handle.
 
Yeah, but I don't think it's possible to do that "double action" OP wants
Actually, it is, but i still couldnt refine it to usable levels.

Trigger→Shortcut Lauched
- if var Cooldown false → set it to true
Else → do action B

And this var called Cooldown is a global boolean which another macro sets it to false 1 second after its set to true.

So i created a homescreen shortcut for this first macro, and if i tap it twice within a second, action B is done.

But here i get two problems:
- if i double tap the shortcut too quickly, it's not executed as expected, it does nothing. I think it should do the action B, since the interval was less than 1s.
- i still dont know how to implement a single tap action inside this macro.

Tldr: i want to make a shortcut which calls action A if tapped once and calls action B if tapped twice.
 
Top