Shoutbox

Winamp - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Winamp (/showthread.php?tid=62908)

Winamp by Pimp Daddy on 07-09-2006 at 03:37 PM

I'm tring to create a script that displays the current track that's playing in WinAmp as a personal message. This is my first attempt at a Live Messenger script, so I apologise if the coding is poor:

code:
function OnEvent_Initialize(MessengerStart)
{
    Debug.Trace("Hello World!");
    AddTimer(bla, 10000);
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_Timer(bla)
{
    var path = "C:\\Program Files\\Winamp\\Plugins\\AudioScrobbler.log.txt";
    var tune = "";
    if(bla == 10000)
    {
        tune = path.text;
        MyPersonalMessage = tune;
    }
    AddTimer(bla, 10000);
}

I only put 'path.text' in there because I was guessing how to retrieve text from the log file. If this is the completely wrong way to solve the problem then please say.
RE: Winamp by matty on 07-09-2006 at 04:30 PM

This was posted by -dt- in the Beta section awhile back.

http://svn.thedt.net/www/cgi/viewcvs.cgi/scripts/...ass.js?view=markup


RE: Winamp by Pimp Daddy on 07-09-2006 at 05:09 PM

Thanks for the link, but unfortunately I don't understand how I can get the code to work. I pasted it in an appropriately named class and nothing happened. I even tried signing out and then signing in again. I've thought about changing the Winamp version number it specifies in the code too - but that doesn't work.

Can you help me?


RE: Winamp by -dt- on 07-09-2006 at 05:21 PM

paste that into your script then use

code:

var player = new Winamp;
Debug.Trace(player.CurrentTrack());
player.__destruct();