What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] Setting window icons...

[help] Setting window icons...
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. Huh?  [help] Setting window icons...
I've seen it done in Countdown Live, but I can't seem to be able to do it.  There's no error message or anything - nothing happens.
Javascript code:
var ScriptIcon = Interop.Call("user32", "LoadImageW", Interop.Call('kernel32', 'GetCurrentProcess'), MsgPlus.ScriptFilesPath + "\\Icon.ico", 1, 0, 0, 0x10 | 0x20);
var TmpWnd = MsgPlus.CreateWnd("Test.xml", "WndTest", 0);
Interop.Call("user32", "SendMessageW", TmpWnd, 0x80, 0, ScriptIcon);
Interop.Call("user32", "SendMessageW", TmpWnd, 0x80, 1, ScriptIcon);

Am I missing something here, or have I done something wrong?
01-29-2010 09:21 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [help] Setting window icons...
Javascript code:
Interop.Call("user32", "SendMessageW", TmpWnd.Handle, 0x80, 0, ScriptIcon);
Interop.Call("user32", "SendMessageW", TmpWnd.Handle, 0x80, 1, ScriptIcon);

01-29-2010 09:36 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: [help] Setting window icons...
Ah...  but now it's giving me the WLM icon!  :S
01-29-2010 09:42 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [help] Setting window icons...
Is it a custom icon you are using?
01-29-2010 09:43 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: [help] Setting window icons...
Yes, and I believe it works since I can set folders to use it.

Edit 1: tried a different icon, that seems to work.  I'll see if I can sort my icon out...
Edit 2: works!  Thanks.  :P

This post was edited on 01-29-2010 at 09:58 PM by whiz.
01-29-2010 09:48 PM
Profile E-Mail PM 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