What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Skinning » 2009, change window colors of conversations

2009, change window colors of conversations
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: 2009, change window colors of conversations
You can still do it.

js code:
var oDirectUIDefaultColour = 0x891C;
var oDirectUIStatusColour9 = {
                             1 : oDirectUIDefaultColour+11,    // offline
                             3 : oDirectUIDefaultColour+10,  // online
                             4 : oDirectUIDefaultColour+5,  // busy
                             5 : oDirectUIDefaultColour+4,  // away
                             6 : oDirectUIDefaultColour+4,  // away
                             7 : oDirectUIDefaultColour+4,  // away
                             8 : oDirectUIDefaultColour+5,  // busy
                             9 : oDirectUIDefaultColour+4   // away
                            }

function OnEvent_Initialize(bMessengerStart) {
    OnEvent_SigninReady();
}

function OnEvent_SigninReady(sEmail) {
    if (Messenger.MyStatus === 0) return;
    for (var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext()) {
        OnEvent_ChatWndCreated(oChatWnd.item());
    }
}

function OnEvent_ChatWndCreated(pChatWnd) {
    if (pChatWnd.Contacts.Count !== 1) return;
    for (var oContact = new Enumerator(pChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext()) {
        Interop.Call('user32', 'SendMessageW', pChatWnd.Handle, 0x111 /* WM_COMMAND */, oDirectUIStatusColour9[oContact.item().Status], 0);
    }
}

function OnEvent_ChatWndDestroyed(pChatWnd) {
    Interop.Call('user32', 'SendMessageW', pChatWnd.Handle, 0x111 /* WM_COMMAND */, oDirectUIDefaultColour, 0);
}

function OnEvent_ContactStatusChange(sEmail, nNewStatus) {
    for (var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext()) {
        if (oChatWnd.item().Contacts.GetContact(sEmail) != null) {
            Interop.Call('user32', 'SendMessageW', oChatWnd.item().Handle, 0x111 /* WM_COMMAND */, oDirectUIStatusColour9[nNewStatus], 0);
        }
    }
}

function OnEvent_ContactSignout(sEmail) {
    OnEvent_ContactStatusChange(sEmail, 1);
}

function OnEvent_ContactSignin(sEmail) {
    OnEvent_ContactStatusChange(sEmail, Messenger.MyContacts.GetContact(sEmail).Status);
}
03-11-2009 10:02 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
2009, change window colors of conversations - by -Buffy on 03-11-2009 at 09:52 PM
RE: 2009, change window colors of conversations - by djdannyp on 03-11-2009 at 09:58 PM
RE: 2009, change window colors of conversations - by matty on 03-11-2009 at 10:02 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-11-2009 at 10:14 PM
RE: 2009, change window colors of conversations - by djdannyp on 03-11-2009 at 10:43 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-11-2009 at 10:55 PM
RE: 2009, change window colors of conversations - by djdannyp on 03-11-2009 at 11:02 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-11-2009 at 11:04 PM
RE: RE: 2009, change window colors of conversations - by djdannyp on 03-11-2009 at 11:07 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-11-2009 at 11:19 PM
RE: 2009, change window colors of conversations - by djdannyp on 03-11-2009 at 11:22 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-11-2009 at 11:23 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-11-2009 at 11:26 PM
RE: 2009, change window colors of conversations - by Nagamasa on 03-12-2009 at 02:04 AM
RE: 2009, change window colors of conversations - by insider on 03-12-2009 at 03:03 AM
RE: 2009, change window colors of conversations - by -Buffy on 03-12-2009 at 11:37 AM
RE: RE: 2009, change window colors of conversations - by djdannyp on 03-12-2009 at 11:40 AM
RE: 2009, change window colors of conversations - by -Buffy on 03-12-2009 at 11:46 AM
RE: 2009, change window colors of conversations - by matty on 03-12-2009 at 12:38 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-12-2009 at 12:52 PM
RE: 2009, change window colors of conversations - by insider on 03-12-2009 at 02:44 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-15-2009 at 11:14 AM
RE: 2009, change window colors of conversations - by -Buffy on 03-15-2009 at 11:35 AM
RE: RE: 2009, change window colors of conversations - by djdannyp on 03-15-2009 at 11:37 AM
RE: 2009, change window colors of conversations - by -Buffy on 03-15-2009 at 11:46 AM
RE: 2009, change window colors of conversations - by djdannyp on 03-15-2009 at 11:48 AM
RE: 2009, change window colors of conversations - by -Buffy on 03-15-2009 at 11:57 AM
RE: RE: 2009, change window colors of conversations - by djdannyp on 03-15-2009 at 12:28 PM
RE: 2009, change window colors of conversations - by -Buffy on 03-15-2009 at 12:36 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