Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Jscript ➜ Switching a trigger on and off from an alias.

Switching a trigger on and off from an alias.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Mazzakazza   (2 posts)  Bio
Date Thu 12 Oct 2006 04:56 PM (UTC)

Amended on Thu 12 Oct 2006 04:59 PM (UTC) by Mazzakazza

Message
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.
Top

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 12 Oct 2006 11:25 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,656 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.