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
➜ Bug reports
➜ Bug when using EnableTimer to disable the same timer.
Bug when using EnableTimer to disable the same timer.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Coderunner
USA (27 posts) Bio
|
Date
| Wed 07 Oct 2009 07:44 AM (UTC) |
Message
| Hello,
I have noticed that when using EnableTimer in the "send" text box to disable the same timer, that the timer either executes instantly, or doesn't execute at all.
I have tried getting the results I want by checking the "only fire once" checkbox, but unfortunately, it deletes the trigger instead of disabling it after one execution. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #1 on Wed 07 Oct 2009 07:48 AM (UTC) |
Message
| Try using ResetTimer() when you disable it, to reset the time-till-fire. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #2 on Wed 07 Oct 2009 09:12 AM (UTC) |
Message
| Agreed.
http://www.gammon.com.au/scripts/doc.php?function=ResetTimer
Enabling a timer does not change when it fires, ResetTimer does that. However resetting a disabled timer doesn't work either.
You need to enable it, and then immediately reset it, for the timer to start counting up again. |
- 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.
14,724 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top