UI Interactions Overlap

Edy

New member
Hi devs.
I have a macro set to trigger a sequence UI Interactions (scrolls, clicks, launch home) that could last up to a minute to complete.
But the trigger is any notification from an app containing a specific keyword.

Problem is when another notification with the same keyword comes before the first actions are completed, it just fires up the string of actions again while first is still running. So both actions run simultaneously, ruining each other.

Seems like a no brainer but you can tell I'm new to MD.
I know there's probably already a thread to solve this but simply can't find the right search terms. They all bring up a thousand related threads.

Your input is appreciated 🙏
 

LF0

Member
Add a Boolean variable, set the variable to true when the action starts running, restore the variable to false after the run ends, and then add a constraint to the trigger: Boolean variable is false

This prevents the trigger from running repeatedly
 

LF0

Member
There's another easy way to add constraints to the trigger: Macro not running (this macro)

But for unknown reasons, this constraint is unreliable on my device
 

Edy

New member
Thank
Add a Boolean variable, set the variable to true when the action starts running, restore the variable to false after the run ends, and then add a constraint to the trigger: Boolean variable is false

This prevents the trigger from running repeatedly
Thanks for the quick response. Ha;e effected and will wait for scenario but I already see it should work flawlessly.
 
Top