What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to update the DP filename as personal Msg

How to update the DP filename as personal Msg
Author: Message:
Danny22
New Member
*


Posts: 11
Joined: Dec 2008
RE: How to update the DP filename as personal Msg
I tried to make a small script for you right now but I am not sure if it's exactly what you're looking for and if it works the same way with your version of WLM.

At least with my version of WLM (8.5), you get the DP file name from the "shell:Local AppData\Microsoft\Messenger\<e-mail>\ObjectStore\UserTile" folder and an example file name could be "dW0VZfrFH4igpqB+aknu+YLVPQc=.dt2" (this is the default chess picture).
This script detects when your DP has changed and will then set your personal message as the file name ("dW0VZfrFH4igpqB+aknu+YLVPQc=" in my example).

I hope you can use it. :)

code:
var prevDpFileName = "";

function OnEvent_Initialize(MessengerStart)
{
    oldDpFileName = Messenger.MyDisplayPicture;
    MsgPlus.AddTimer("DpChangeTimer", 1000);
}

function OnEvent_Timer(TimerId)
{
    switch (TimerId)
    {
        case "DpChangeTimer":
            if (Messenger.MyDisplayPicture != prevDpFileName) // your DP has changed
            {
                // fire custom event
                OnEvent_DpChanged(Messenger.MyDisplayPicture);
                prevDpFileName = Messenger.MyDisplayPicture;
            }
            MsgPlus.AddTimer(TimerId, 1000);
            break;
    }
}

function OnEvent_DpChanged(NewFileName)
{
    var tempFileName = NewFileName;
    // extract the file name
    tempFileName = tempFileName.substr(tempFileName.lastIndexOf("\\") + 1);
    var extPos = tempFileName.lastIndexOf(".");
    if (extPos >= 0) // the file name has an extension
    {
        // remove the extension
        tempFileName = tempFileName.substr(0, extPos);
    }
    // update personal message
    Messenger.MyPersonalMessage = tempFileName;
}

This post was edited on 01-18-2009 at 07:19 PM by Danny22.
01-18-2009 07:16 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How to update the DP filename as personal Msg - by tantiger on 01-18-2009 at 02:38 PM
RE: How to update the DP filename as personal Msg - by matty on 01-18-2009 at 02:59 PM
RE: How to update the DP filename as personal Msg - by tantiger on 01-18-2009 at 03:55 PM
RE: How to update the DP filename as personal Msg - by Danny22 on 01-18-2009 at 07:16 PM
RE: How to update the DP filename as personal Msg - by tantiger on 01-19-2009 at 02:49 AM
RE: How to update the DP filename as personal Msg - by Jesus on 01-19-2009 at 03:27 AM
RE: How to update the DP filename as personal Msg - by tantiger on 01-19-2009 at 08:15 AM
RE: How to update the DP filename as personal Msg - by Jesus on 01-19-2009 at 02:12 PM
RE: How to update the DP filename as personal Msg - by tantiger on 01-19-2009 at 03:04 PM
RE: How to update the DP filename as personal Msg - by Jesus on 01-19-2009 at 03:46 PM
RE: How to update the DP filename as personal Msg - by Danny22 on 01-19-2009 at 06:39 PM
RE: How to update the DP filename as personal Msg - by Jesus on 01-19-2009 at 07:04 PM
RE: RE: How to update the DP filename as personal Msg - by Danny22 on 01-19-2009 at 08:31 PM
RE: How to update the DP filename as personal Msg - by Jesus on 01-20-2009 at 02:06 AM
RE: How to update the DP filename as personal Msg - by Danny22 on 01-20-2009 at 10:31 AM
RE: How to update the DP filename as personal Msg - by tantiger on 01-20-2009 at 01:50 PM


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