What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Random window colour scheme

Random window colour scheme
Author: Message:
zach
Senior Member
****

Avatar

Posts: 556
Reputation: 18
33 / Male / Flag
Joined: Jan 2005
Status: Away
O.P. Random window colour scheme
Would it be possible to have a script chose a random window colour scheme when you open a new conversation? Some skins look good with most of the colours so a different scheme for each time a conversation window is opened would be cool.

Thanks.
05-24-2008 07:34 AM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: Random window colour scheme
Hey zach, i wrote these lines of "code" a long time ago  for the same reason :p

code:
var WM_COMMAND = 0x111;
var _wParam = [0x891C,0x891D,0x891E,0x891F,0x8920,0x8921,0x8922,0x8923,0x8924,0x8925,0x8926,0x8927];

function OnEvent_ChatWndCreated(ChatWnd){
Interop.Call("user32", "PostMessageW", ChatWnd.Handle, WM_COMMAND, _wParam[Math.floor(Math.random()*_wParam.length)], 0);
}
* for WLM 8.5 only ;)
05-25-2008 08:13 AM
Profile E-Mail PM Find Quote Report
zach
Senior Member
****

Avatar

Posts: 556
Reputation: 18
33 / Male / Flag
Joined: Jan 2005
Status: Away
O.P. RE: Random window colour scheme
Awesome, thanks. So the third line includes the 12 colours it will choose from, is it possible to have more?
05-26-2008 06:17 AM
Profile PM Find Quote Report
XP1
Junior Member
**

Avatar

Posts: 28
Joined: Nov 2004
RE: RE: Random window colour scheme
quote:
Originally posted by felipEx
Hey zach, i wrote these lines of "code" a long time ago  for the same reason :p

code:
var WM_COMMAND = 0x111;
var _wParam = [0x891C,0x891D,0x891E,0x891F,0x8920,0x8921,0x8922,0x8923,0x8924,0x8925,0x8926,0x8927];

function OnEvent_ChatWndCreated(ChatWnd){
Interop.Call("user32", "PostMessageW", ChatWnd.Handle, WM_COMMAND, _wParam[Math.floor(Math.random()*_wParam.length)], 0);
}
* for WLM 8.5 only ;)
Do you have one that works with Windows Live Messenger 2009?
01-20-2009 02:15 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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