Shoutbox

Random window colour scheme - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Random window colour scheme (/showthread.php?tid=83909)

Random window colour scheme by zach on 05-24-2008 at 07:34 AM

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.


RE: Random window colour scheme by felipEx on 05-25-2008 at 08:13 AM

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 ;)
RE: Random window colour scheme by zach on 05-26-2008 at 06:17 AM

Awesome, thanks. So the third line includes the 12 colours it will choose from, is it possible to have more?


RE: RE: Random window colour scheme by XP1 on 01-20-2009 at 02:15 AM

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?