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

how to filter the music?
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: how to filter the music?
It is an error on your part as the function works fine...

code:
var MediaInfo = new Array();

function OnEvent_MyMediaChange(NewMedia){
      MediaInfo = parseMedia(NewMedia);
      for(i in MediaInfo){
            Debug.Trace(i+" - "+MediaInfo[i]);
      }

}

function parseMedia(Media) {
      var mediaExp = /^\\0([a-z]+)\\0([0-1])\\0(.*)\\0(.*)\\0(.*)\\0(.*)\\0(.*)\\0$/i;
      if(typeof(Media) == "string" && mediaExp.test(Media)) {
            var arr = new Array();
            arr['Type'] = RegExp.$1;
            arr['Enabled'] = RegExp.$2;
            arr['Format'] = RegExp.$3;
            arr['Title'] = RegExp.$4;
            arr['Artist'] = RegExp.$5;
            arr['Album'] = RegExp.$6;
            arr['ContentId'] = RegExp.$7;
            Debug.Trace(arr);
            return arr;
      } else {
            return false;
      }
}


That works perfectly

This post was edited on 11-21-2006 at 09:53 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
11-21-2006 09:39 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
how to filter the music? - by roflmao456 on 11-21-2006 at 03:13 AM
RE: how to filter the music? - by Matti on 11-21-2006 at 05:27 PM
RE: RE: how to filter the music? - by roflmao456 on 11-21-2006 at 09:15 PM
RE: how to filter the music? - by Spunky on 11-21-2006 at 09:39 PM
RE: RE: how to filter the music? - by roflmao456 on 11-21-2006 at 09:46 PM
RE: how to filter the music? - by Spunky on 11-22-2006 at 12:00 AM


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