FrameXX
Well-known member
So what if I want to trigger some macro from another macro? Or even better what if I want to trigger macro after tapping on notification?
Well I can use the run macro action in both cases of course, which doesn't allow me to attach any further arguments. I can only pass arguments by messing up with global variables.
If I just want to trigger some macro from another macro and don't care about the notification I can broadcast intent and have a trigger in second macro. Here I can also pass arguments!
I talked about this here.
But what about the notification where I can only trigger certain macro or action block without any arguments whatsoever?
I think I have an idea for solution.
The setup of the action would allow user to add a custom event/trigger that would fire on certain event happening to the object (notification). Click for example.
Every event would have its id and n number of arguments defined by the user of course with ability to use magic text especially local variables.
Custom event would be a regular trigger availible to all macros similiar to intent trigger in configuration.
Why I think this is a good idea:
Can be used for any possible trigger that is configured by in-macro action like floating button, floating text or notification. No need for developer to make a new extra trigger for every kind of object.
Additional arguments are supported.
Can be used as better alternative for run macro action.
Can directly trigger several macros at once.
Well I can use the run macro action in both cases of course, which doesn't allow me to attach any further arguments. I can only pass arguments by messing up with global variables.
If I just want to trigger some macro from another macro and don't care about the notification I can broadcast intent and have a trigger in second macro. Here I can also pass arguments!
I talked about this here.
Use Intent Broadcasts to communicate inside MacroDroid [ideas]
I am sure everyone knows "Macro Run" action or use variables to trigger another macros, but I think sending an Intent broadcast is another good way how to communicate inside MacroDroid that is not much used. Using intents is not good for storing values like variables do, but rather for...
macrodroidforum.com
But what about the notification where I can only trigger certain macro or action block without any arguments whatsoever?
I think I have an idea for solution.
The setup of the action would allow user to add a custom event/trigger that would fire on certain event happening to the object (notification). Click for example.
Every event would have its id and n number of arguments defined by the user of course with ability to use magic text especially local variables.
Custom event would be a regular trigger availible to all macros similiar to intent trigger in configuration.
Why I think this is a good idea:
Can be used for any possible trigger that is configured by in-macro action like floating button, floating text or notification. No need for developer to make a new extra trigger for every kind of object.
Additional arguments are supported.
Can be used as better alternative for run macro action.
Can directly trigger several macros at once.
Last edited: