save trigger in file

jmlat

Member
Hello,
in my macro i have a log file to store different events and actions.
but this macro can be fire with different triggers, and i would like to store in my log file wich trigger fired my macro.
but i didn't find any magic word wich represents trigger and i don't know how to store it in a variable
is someone have an idea to solve this ?
thanks
 

Dm114

Well-known member
Hello,
in my macro i have a log file to store different events and actions.
but this macro can be fire with different triggers, and i would like to store in my log file wich trigger fired my macro.
but i didn't find any magic word wich represents trigger and i don't know how to store it in a variable
is someone have an idea to solve this ?
thanks
You could start with the condition called Macro Invocation Method.

In addition you could add a line at the beginning of each of your macros appending their name {macro_name} to your log.
 

MacroDroidDev

Administrator
Staff member
Presumably your macro has a fairly limited number of macros, so you can do something like this.

If (trigger fired 1) {
log
else if (trigger fired 2) {
log
else if ....

I do take the point however that it may be useful to have some magic text just to output information about the trigger that fired, so I will consider this for the future.
 
Top