Detect how a macro was triggered?

Is there a way to detect the method that was used to trigger a macro within the macro itself?

I mean, if I have a macro that can be triggered by Hot Key, Device, and Script , … I am looking for a way to have slightly different behaviors depending on how it was triggered. I would prefer not to have to duplicate the macro to separate trigger methods. Any ideas?

Thanks!

Yes, you can use the various Trigger text tokens:

  • %Trigger% - the trigger that fired this macro.
  • %TriggerBase% - the trigger type (eg “Typed String Trigger”)
  • %TriggerValue% - the value associated with the trigger (eg the typed string, or the hot key pressed).
1 Like

whoa, nice. I’m off to reorganize my macros now. Thank you!