Archive: Countdown timer.


25th March 2004 17:43 UTC

Countdown timer.
This is a stupid countdown timer I made while farting around in #nullsoft. It's nothing spectacular, just a basic example of how to use those new wa5 functions. I plan on adding it to every preset in my directory at the karaoke bar (so people know how long the current song will be)

Does anyone know if I can grab the next title in the playlist?

--toq


26th March 2004 19:04 UTC

Yay im replying to my own thread..

I'm racking my brain trying to figure this one out..

How would I convert 180 seconds to minutes:seconds ? At first I thought it was just divide by 60, but it's more than that.

Anyone that can answer this in the next few hours is my hero, maybe i'll nsv you a karaoke request.


26th March 2004 19:30 UTC

Safti from #nullsoft you're my hero for showing me the floor!
Props to liquid to for playin with it too.


26th March 2004 19:53 UTC

numsec contains the number of secons till that moment.

seconds=numsec%60;
minutes=(numsec-seconds)/60;


26th March 2004 20:02 UTC

I can see all kinds of neat things from this..

Avs of a thermotmeter.
Avs of a growing tree.
Avs of a progress bar.