AddTrigger and AddTriggerEx should support group name

Posted by Poromenos on Wed 11 Jun 2003 08:42 PM — 2 posts, 7,982 views.

Greece #0
You should be able to specify a trigger group in AddTrigger and AddTriggerEx. Also, i think they are missing some options that are settable from the normal trigger dialog, but i'm not sure.
Australia Forum Administrator #1
Yes, "should be able" - however I cannot just now arbitrarily add more arguments to those, as existing calls to them would fail.

Also, I don't really want to have more and more script routines (like AddTriggerWithGroup) when you can achieve the same thing in other ways.

First method is to simply add the trigger in the usual way, with a known name (ie. a name you generate) and then use SetTriggerOption to change any options that AddTrigger doesn't support.

Second method is simply to add the trigger with ImportXML which lets you, in one nice and easy-to-read call, set all options. Read about it at:

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