Alias to toggle triggers

Posted by Tiopon on Sat 14 Mar 2009 04:29 AM — 1 posts, 9,981 views.

USA #0
Just wrote this up quickly to toggle triggers... post if there are any problems with it. Started using the 5 year old suggested code to enable/disable all triggers, and turned that into this to enable or disable a single trigger. This easily gets added to macros or other accelerators. Anyways... here goes.

<aliases>
  <alias
   name="ToggleTrigger"
   match="tt *"
   enabled="y"
   send_to="12"
   ignore_case="y"
   sequence="100"
  >
  <send>
EnableTrigger ("%1", (GetTriggerOption("%1", "enabled")+1)%%2)
ColourNote ("sienna", "thistle", "%1 trigger is enabled: " .. tostring(GetTriggerOption("%1", "enabled") == 1))
</send>
  </alias>
</aliases>