What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Change Mainwindow color?

Change Mainwindow color?
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Change Mainwindow color?
Yes, it is possible! :D I just figured it out! :)
code:
//Change color of a ChatWnd.
Interop.Call("user32", "SendMessageW", ChatWnd.Handle, 0x0111 /* WM_COMMAND */, 35117, 0);
//Change color of the contact list (thus also the default color in new conversations). Make sure the contact list is open for this to work.
Interop.Call("user32", "SendMessageW", Messenger.ContactListWndHandle, 0x0111 /* WM_COMMAND */, 35117, 0);
//Reset the color in a ChatWnd to the default (contact list) color.
Interop.Call("user32", "SendMessageW", ChatWnd.Handle, 0x0111 /* WM_COMMAND */, 35119, 0);
//Reset the color of the contact list to the default Messenger color (#feffff). Or in other words: set the color to the first color swatch.
Interop.Call("user32", "SendMessageW", Messenger.ContactListWndHandle, 0x0111 /* WM_COMMAND */, 35100, 0);
//Reset the color of a ChatWnd to the default Messenger color.
Interop.Call("user32", "SendMessageW", ChatWnd.Handle, 0x0111 /* WM_COMMAND */, 35100, 0);
A note on the last 2 commands: you can choose from any swatch available on the panel. There are 12 swatches and to get the command, you'll need to add 35100 to the index, e.g. the 2nd color has index 1 (counting starts at 0) so the command would be 35101... or just look it up in ResHack > msgsres.dll > 4004 > 945 beginning at line 131.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
05-16-2007 01:47 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Change Mainwindow color? - by Intosia on 05-16-2007 at 11:02 AM
RE: Change Mainwindow color? - by Matti on 05-16-2007 at 01:47 PM
RE: Change Mainwindow color? - by Matti on 05-16-2007 at 03:16 PM
RE: Change Mainwindow color? - by Intosia on 05-16-2007 at 04:07 PM
RE: Change Mainwindow color? - by Intosia on 05-24-2007 at 01:50 PM
RE: Change Mainwindow color? - by Matti on 05-24-2007 at 03:22 PM
RE: Change Mainwindow color? - by Intosia on 05-24-2007 at 04: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