I got it working using the tips from Fiendish. That gave me exactly the timer I needed, and I am loading/enabling/disabling the timer from my vbscript. I realize there is probably a more efficient way to do it, but that was the easiest for me and is working perfectly. Thanks for the help!
Amended on Thu 08 Sep 2011 08:25 PM (UTC) by Fiendish
Message
First replace all instances of 30 with the duration of your timer in seconds.
Then replace
function OnPluginTelnetOption (option)
if option == string.char (101,1) then
-- last_tick = os.time()
last_tick = os.clock()
-- SetStatus ("Time to tick: " .. (last_tick + 30) - os.time ())
end -- if
end -- function
with something like
function MyTimerHasFired()
last_tick = os.clock()
end
and have your timer call that function when it fires.
I would like to use this analog timer, but quite frankly I am not a good enough programmer to be able to modify it for my needs. Specifically, I don't want a tick timer, I simply am looking for an analog dial that shows how much time left until a mushclient timer fires. Any help would be appreciated.
Alright, first post here, but I've been lurking a while. No offense to anyone, but I got tired of my tick timer being in the status bar and overwriting stuff that was there every 2s, so I decided to move it out to a miniwin... and since I was doing that, I figured I'd give it a nice analog face... :)
Anyhow, what I have is IMHO a functional and nice looking tick timer. Y'all enjoy...
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.