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
➜ General
➜ Does anybody know if/how i can activate/stop a timer from a trigger?
|
Does anybody know if/how i can activate/stop a timer from a trigger?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| AsheOck
(1 post) Bio
|
| Date
| Wed 30 Apr 2003 02:00 AM (UTC) |
| Message
| I was wondering if there was a way to Start or stop a timer after reciving an input from the MUX?
Also on a SemiSide note, can i use a trigger to define how many times a timer runs or how long it runs? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 30 Apr 2003 02:15 AM (UTC) |
| Message
| The trigger could do:
world.EnableTimer "timername", 0
That would disable it. Or it could delete it:
world.DeleteTimer "timername"
(You would set the trigger to "send to script" to do that).
You could also use a wildcard (or something) in a trigger to define how long a timer ran (this is the time between firings however).
Timers either run:
* once
* every X seconds
* at a particular time
You cannot set a timer to run every (say) 10 seconds for 5 minutes, however you could do that with 2 timers. One which ran every 10 seconds, and another that ran for 5 minutes which deleted the first one.
|
- 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.
10,226 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top