Switching a trigger on and off from an alias.

Posted by Mazzakazza on Thu 12 Oct 2006 04:56 PM — 2 posts, 13,540 views.

#0
As the name suggests, i wish to be able to turn activate and deactivate a trigger using a pair of aliases.
I.e, when i send Triggeroff, it turns the triggers in that group off, and when i send triggeron, it turns 'em on. I know that i have to script to do this...i'm no use at scripting. It has something to do with giving a value to a group, 1 to switch on, and 0 to switch off, i think? Thanks.
Amended on Thu 12 Oct 2006 04:59 PM by Mazzakazza
Australia Forum Administrator #1
See:

http://www.gammon.com.au/scripts/doc.php?function=EnableTrigger

or:

http://www.gammon.com.au/scripts/doc.php?function=EnableTriggerGroup

A small alias with 'send to script' along the lines of the examples there will do it.