It is currently April 19th, 2024, 5:30 pm

Winamp Countdown Timer

Topics unrelated to Rainmeter.
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Winamp Countdown Timer

Post by Yelleke »

We all use Winamp players with timers counting up.

I would like to have a counter going down to zero.
So I can easely see how long the song last,
instead of calculating in my head how long the song remains

Is there anybody who can change the formulas for this :?:
sgtevmckay

Re: Winamp Countdown Timer

Post by sgtevmckay »

Ya know I am not absolutely certain, but I think this is an interface option that can be retrieved like the time that counts up, just need to remember what is the command for count down .
  I believe that I have come across a couple of skins that have both time available.  
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Re: Winamp Countdown Timer

Post by Yelleke »

I doubt that its something that can be retrieved.
As for the normal counter, they need a serious set of formulas

the formulas below comes from the SuperCollosal skin (I love that skin)

Code: Select all

[CURR]
	Measure=Plugin
	Plugin=Plugins\WindowMessagePlugin.dll
	WindowClass=Winamp v1.x
	WindowMessage=1024 0 105
[CURR_M]
	Measure=Calc
	Formula=((CURR/1000+0.5)-((CURR/1000+0.5)%60))/60
[CURR_S]
	Measure=Calc
	Formula=((CURR/1000)%60)/10>=5.95?0:((CURR/1000)%60)/10
	Substitute=".":"","-":""
[DURATION]
	Measure=Calc
	Formula=(CURR<=0)?0:(CURR/(FULL*1000+1))
wish I had the formulas for the countdown
sgtevmckay

Re: Winamp Countdown Timer

Post by sgtevmckay »

I will do some home work :geek:
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Winamp Countdown Timer

Post by Chewtoy »

Just make a calculation of the full time of the track minus how long it has gone?

So if the song is 4:46 and it's been playing for 2:34 then just take 4:46-2:34
Ofcourse you have to use the original values that are retrived from the measures and then do redo them to min:sec.

Code: Select all

[MeasureTotalLength]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 105

[MeasureTime]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 105

[MeasureTimeLeft]
Measure=Calc
Formula="(MeasureTotalLength)-(MeasureTime)"

[MeasureTimeLeftMin]
Measure=Calc
Formula=((MeasureTime / 1000) - ((MeasureTime / 1000) % 60)) /60

[MeasureTimeLeftSec]
Measure=Calc
Formula=(MeasureTime / 1000) % 60 = 60 ? 0 : (MeasureTime / 1000) % 60
Substitute="010":"10"

[MeasureTimeLeftZero]
Measure=Calc
Formula=(((MeasureTime) /1000) % 60)  < 9 ? 0 : 1
Substitute="1":"","9":"09"
I haven't tried it. But I think it should work. Don't really see why it shouldn't.
I don't think, therefore I'm not.
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Re: Winamp Countdown Timer

Post by Yelleke »

I have it all working thanks to Kenz0.
He made me the countdown timer for his SuperColossal skin.

Now I'm so happy like a kid on santa's day
  Wish I was that age again  
Thanks Kenz0
;)
sgtevmckay

Re: Winamp Countdown Timer

Post by sgtevmckay »

Yelleke wrote:Now I'm so happy like a kid on santa's day
  Wish I was that age again  
Dude you are never to old :ugeek:
In many ways: Santa comes to us all ;)