What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Winamp

Winamp
Author: Message:
Pimp Daddy
New Member
*


Posts: 2
40 / Male / –
Joined: Jul 2006
O.P. Winamp
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.
07-09-2006 03:37 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Winamp
This was posted by -dt- in the Beta section awhile back.

http://svn.thedt.net/www/cgi/viewcvs.cgi/scripts/...ass.js?view=markup
07-09-2006 04:30 PM
Profile E-Mail PM Find Quote Report
Pimp Daddy
New Member
*


Posts: 2
40 / Male / –
Joined: Jul 2006
O.P. RE: Winamp
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?
07-09-2006 05:09 PM
Profile E-Mail PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Winamp
paste that into your script then use

code:

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


[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-09-2006 05:21 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On