Random window colour scheme |
Author: |
Message: |
zach
Senior Member
Posts: 556 Reputation: 18
33 / /
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 |
|
|
felipEx
Scripting Contest Winner
Posts: 378 Reputation: 24
35 / /
Joined: Jun 2006
|
RE: Random window colour scheme
Hey zach, i wrote these lines of "code" a long time ago for the same reason
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 |
|
|
zach
Senior Member
Posts: 556 Reputation: 18
33 / /
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 |
|
|
XP1
Junior Member
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
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 |
|
|
|
|