Winamp label Thread last updated on 2003-06-14 11:04:58

Posted by member 1783 on 2003-06-14 04:48:38

I want a label to show the current winamp song etc. that's not a problem, but when winamp is closed, there's no text and i have an empty ugly box sitting on my desktop. i don't want the box to dissapear. instead i would like if the label displayed some other text like "Winamp is offline" or sth like that. is this possible and if it is then how?

Posted by member 32550 on 2003-06-14 06:49:13 link

with the one.dll you can detect if winamp is running or not
!One [class][title][not found command][found command][active command]

create 2 labels (one with the amp title and the other with something else) of course same sized and positioned ;)
than you can create with mzscript two small scripts for "found" and "not found" which toggles between the 2 labels. sounds harder than it is :)

*script bang !ampstop
*script exec !amplabel2show
*script exec !amplabel1hide
*script ~bang

*script bang !ampstart
*script exec !amplabel1show
*script exec !amplabel2hide
*script ~bang


its the easyest way :)



uh, or what is better, to use one label and two scripts:

*script bang !ampstop
*script exec !amplabelsettext "Uptime: [uptime ('h:nn')] on [date ('d.m.yyyy')]"
*script ~bang

*script bang !ampstart
*script exec !amplabelsettext "[winampSong]"
*script ~bang


why to I alwys think around 10 edges when it's sometimes to easy :)

Posted by member 1783 on 2003-06-14 07:48:53 link

thnx, i was thinking about something similar, but that !One bang checks only once if winamp is running.
it must be put in a loop and that's not nice if there's an infinite loop running in the background.
isn't there an event-handle or sth which is activated when winamp is run? like OnWinampInit and OnWinampClose?

Posted by member 1 on 2003-06-14 07:52:52 link

/me pets jAmpToo for being smart enough to know if WinAmp is open or not :)

Posted by member 1783 on 2003-06-14 07:55:11 link

yup, but can't it be done with label or dynamp? somehow?

Posted by member 32550 on 2003-06-14 08:05:10 link

ok, for loop checking, use your labels (mouse enter) and/or ckhotsports.dll.

Posted by member 1783 on 2003-06-14 08:07:49 link

oh well, i guess i'll go back to the good old jAmpToo :)

Posted by member 7 on 2003-06-14 10:14:05 link

the "classic" solution is to use literunner.dll though ;)

Posted by member 1783 on 2003-06-14 10:47:37 link

wow, i like literunner :) thnx ilmcuts. but i think i'll stick to jamptoo. but maybe... ;)

Posted by member 7223 on 2003-06-14 11:04:58 link

Better use literunner so you can show/hide amptitlelabel, amptimelabel, sliders, ampbuttons, resize your box/bar... do EXACTLY what you want.
I think it's the best "Litesteper" way :)
...like under *nix, you have alot of SMALL tools which allow you to do BIG jobs