Gammon Forum
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 (22,975 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.
11,555 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.