Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 29th September 2006, 07:59   #1
simay
Junior Member
 
Join Date: Oct 2005
Posts: 48
WTF is up with this script

This maki code is pissing me off

code:
/*declarations and all that crap*/

System.onScriptLoaded()
{
ScriptGrp = getScriptGroup();

song_Ticker = ScriptGrp.findObject("Songticker");

setSongInfo();

}

System.onScriptUnLoading()
{
}

System.onTitleChange(string newTitle)
{
setSongInfo();
}

setSongInfo()
{
song_Ticker.setText(getPlayItemMetaDataString("artist")+
" - "+getPlayItemMetaDataString("title")+
" ("+integerToTime(getPlayItemLength())+") ");
}



the two calls to setSongInfo() produce two different results.

-when called from onscriptloading, the playitemlength returns correct
-when called from titlechange, the playitemlength returns a time of 0:00 <--WTF

is this something to do with winamp? because i can see nothing wrong with my script.

yes, i do know this is pretty much the default songticker, im just messing around with the metadata stuff.
simay is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump