What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Custom Contact List Title

[Request] Custom Contact List Title
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] Custom Contact List Title
Javascript code:
function OnEvent_Initialize(bMessengerStart) { OnEvent_ContactListWndCreated(); }
function OnEvent_SigninReady(sEmail) { OnEvent_ContactListWndCreated(); }
function OnEvent_ContactListWndCreated() {
    if (Messenger.ContactListWndHandle === 0) return;
    var str;
    switch (Messenger.MyEmail) {
        case 'johndoe@hotmail.com':
            str = 'Account 1';
            break;
        case 'johndoe@live.com':
            str = 'Account 2';
            break;
        default:
            str = Messenger.MyEmail;
            break
    }
   
    var lpsz = Interop.Allocate(2*str.length+2);
    lpsz.WriteString(0, str);
    Interop.Call('user32', 'SendMessageW', Messenger.ContactListWndHandle, 0xC /* WM_SETTEXT */, 0, lpsz.DataPtr);
}


However you would think that email addresses would be easier!
01-11-2009 07:11 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Custom Contact List Title - by Knucks on 01-11-2009 at 05:13 PM
RE: [Request] Custom Contact List Title - by warmth on 01-11-2009 at 05:20 PM
RE: [Request] Custom Contact List Title - by matty on 01-11-2009 at 05:39 PM
RE: [Request] Custom Contact List Title - by Knucks on 01-11-2009 at 06:22 PM
RE: [Request] Custom Contact List Title - by matty on 01-11-2009 at 06:30 PM
RE: RE: [Request] Custom Contact List Title - by warmth on 01-27-2009 at 12:06 AM
RE: [Request] Custom Contact List Title - by Knucks on 01-11-2009 at 06:40 PM
RE: [Request] Custom Contact List Title - by Mnjul on 01-11-2009 at 07:11 PM
RE: [Request] Custom Contact List Title - by matty on 01-11-2009 at 07:11 PM
RE: [Request] Custom Contact List Title - by Knucks on 01-11-2009 at 07:22 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