What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Calling media with a script results in a strange value

Calling media with a script results in a strange value
Author: Message:
Scott
New Member
*


Posts: 13
Joined: Jun 2006
O.P. Calling media with a script results in a strange value
I've made this script:

code:
function OnEvent_ContactMediaChange (email, new_media) {
   
    contact = Messenger.MyContacts.GetContact(email);
    name = contact.Name;
    new_media = MsgPlus.RemoveFormatCodes(new_media);
   
    Debug.Trace(name + 'changed media to ' + new_media);
}


It works, however, when a contact changes his media, a string like this is written to the debugger window:

Winamp\0Music\01\0{0} - {1}\0Side Liife\0Rt.\0\0\0

Somebody on IRC already told me this is the raw data, but I'd like to know how to parse this raw data so it only results in Title - Artist.

Does anybody know how to do this ?

06-26-2006 07:21 PM
Profile E-Mail PM 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