What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » PSM changing when a media stops

PSM changing when a media stops
Author: Message:
Bhaclash
New Member
*


Posts: 3
Joined: Oct 2009
O.P. RE: PSM changing when a media stops
Okay, I managed to solve the problem with the help of your script :)
My onEvent_MyMediaChange function looks like this:
code:
function OnEvent_MyMediaChange(NewMedia){
    var tmp = NewMedia;
    try{
        tmp=tmp.split("\\0");
        tmp[3]=tmp[3].replace(prefix,"");
        tmp[3]=tmp[3].replace(suffix,"");
        tmp[3]=prefix+" "+tmp[3]+" "+suffix;
        tmp[3]=tmp[3].replace(/\s\s/g," ");
        Messenger.MyPersonalMessage=prefix+" || "+tmp[4]+" - "+tmp[5]+ " || "+suffix;
        setNowPlaying(false,icon,tmp[3],tmp[4],tmp[5],tmp[6],tmp[7]);
    }catch(e){
        if(e.number!="-2146823281"){
            Debug.Trace("HANDLED: error "+e.number);
            Debug.Trace("Please report any bugs to the Author at:");
            Debug.Trace("http://shoutbox.menthix.net/forumdisplay.php?fid=39");
        }else{
            Debug.Trace("HANDLED: Array element tmp[3] does not exist. This is most likely the way the file information has been completed");
            Messenger.MyPersonalMessage=prefix+" "+suffix;
        }
    }
}


I've only changed the underlined parts.
Thank you, Spunky, for your help and the whole mPSM script ;)

-------------------------------------------------------------------------------

I was a bit quick to say it's working...:/ Now at first it displays the PSM correctly, then it removes the song's title from the PSM...
Somehow the else branch is always triggered... Why could it be?

This post was edited on 10-31-2009 at 11:47 AM by Bhaclash.
10-31-2009 12:53 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PSM changing when a media stops - by Bhaclash on 10-26-2009 at 07:53 PM
RE: PSM changing when a media stops - by Spunky on 10-27-2009 at 02:46 AM
RE: PSM changing when a media stops - by Bhaclash on 10-27-2009 at 07:45 PM
RE: PSM changing when a media stops - by Schnappi on 10-28-2009 at 07:39 AM
RE: PSM changing when a media stops - by Spunky on 10-28-2009 at 02:43 PM
RE: PSM changing when a media stops - by Bhaclash on 10-31-2009 at 12:53 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