Shoutbox

Suggestion: Personal Status with Display Picture Change - 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: Suggestion: Personal Status with Display Picture Change (/showthread.php?tid=90633)

Suggestion: Personal Status with Display Picture Change by DevlishZephyr on 05-14-2009 at 02:49 PM

I use the personalised statusses alot, and for exemple I have statusses like:

Eating
Sleeping
Working
etc ...

What would be nice is that you could automate the change of your display picture as well, so that it changes your display picture as well when you switch to a personalised status.  For exemple, I have a sleeping avatar, an eating avatar, ... :P

Thanks for letting me know how to achieve this if allready possible.


RE: Suggestion: Personal Status with Display Picture Change by ryxdp on 05-15-2009 at 07:57 AM

This can be easily done with a script:

JScript code:
var originaldp;
var dpdir=MsgPlus.ScriptFilesPath; //You can change this to your own directory
function OnEvent_EnterPersonalizedStatus(status,tag,psm,auto){
    switch(tag){
        case 'Eating': //Change DPs for each PStatus
            Messenger.MyDisplayPicture=dpdir+'\\eatingdp.png';
            break;
        case 'Sleeping':
            Messenger.MyDisplayPicture=dpdir+'\\sleepingdp.png';
            break;
        case 'Working':
            Messenger.MyDisplayPicture=dpdir+'\\workingdp.png';
            break;
    }
}
function OnEvent_LeavePersonalizedStatus(){ //Reset DP when PStatus is turned off
    Messenger.MyDisplayPicture=originaldp;
}
function OnEvent_SignIn(){ //Set the original DP
    originaldp=Messenger.MyDisplayPicture;
}


There's probably a more efficient way to do this using scripting, but here's my contribution anyway :P

To add more statuses you just need to copy the three lines from case to break.