The 'macro is running' Trigger

nash

New member
Please make a 'macro is running' trigger.
The same as the existing condition 'macro is running'.
So that it is possible to run another macro on the trigger if this macro is running.
 

LinerSeven

Well-known member
Hi, @nash,

If you want to keep track of whether a macro is running or not, you can set a global variable with an arbitrary true/false type flag and set the flag to TRUE when the macro is executed and FALSE when it exits, which may satisfy your requirements.

Best Regards,
Liner Seven,
 

nash

New member
Hi, @nash,

If you want to keep track of whether a macro is running or not, you can set a global variable with an arbitrary true/false type flag and set the flag to TRUE when the macro is executed and FALSE when it exits, which may satisfy your requirements.

Best Regards,
Liner Seven,
I want if a macro is being launched the other one with the trigger 'macro is running [this macro]' or 'macro is launched' could fire.
This could help to manage the macro system.
 

LinerSeven

Well-known member
I want if a macro is being launched the other one with the trigger 'macro is running [this macro]' or 'macro is launched' could fire.
This could help to manage the macro system.
Hi, @nash,

Are you familiar with this action?

Screenshot_20250509_063643.png

As already mentioned, if you maintain a flag in a global variable that a particular macro is running, this action allows you to run another macro as soon as a change occurs in that variable.

Regards,
Liner Seven,
 

nash

New member
Hi, @nash,

Are you familiar with this action?

As already mentioned, if you maintain a flag in a global variable that a particular macro is running, this action allows you to run another macro as soon as a change occurs in that variable.

Regards,
Liner Seven,
Of course. But this is not relaiable. Especially if the macro is canceled without setting this variable to its default.
I could place a set of the triggers to the particular macros to wait for they be launched. Or even one trigger with a set of the macros to watch for.
It would be very easy in use.
 

md_sgf

Well-known member
Of course. But this is not relaiable. Especially if the macro is canceled without setting this variable to its default.
The trigger Macro Finished can detect if target macro has ended (also works if do Cancel Macro Actions within that macro)
 

Winny57

Active member
This is why I had requested access to the MacroDroid system log or even the user log so that we could use the log data in a variable, this could allow us to have a notification of a new system event but on the information of the new data entered in the log
 
Top