get trigger which triggeres a macro

jiangli

New member
when a macro has multi traggers, how can I know which one triggers the macro.
considering the following case:
TRIGGERS trigger1 trigger2 ACTIONS do A if trigger = trigger1 do B else if trigger = trigger2 do C endif do D

althrough this can be done by separating the macro into two macros. but I'd like to achieve in one macro for sharing common actions.
a "silly" method is to read macro log and find keyword. but is there a smarter one?
 

Qarboz

Well-known member
when a macro has multi traggers, how can I know which one triggers the macro.
considering the following case:
TRIGGERS trigger1 trigger2 ACTIONS do A if trigger = trigger1 do B else if trigger = trigger2 do C endif do D

althrough this can be done by separating the macro into two macros. but I'd like to achieve in one macro for sharing common actions.
a "silly" method is to read macro log and find keyword. but is there a smarter one?
Yes.
Use IF->Trigger Fired clause
 
Top