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

Pages: (3): « First « 1 [ 2 ] 3 » Last »
Status Icons
Author: Message:
Spongshga
Junior Member
**

Avatar
reporter

Posts: 44
33 / – / Flag
Joined: Aug 2008
RE: Status Icons
what for  a comand is it to change?
"/change icon"??
[Image: 6hxggzng.gif]
[Image: 4lr87q.jpg]
08-31-2009 04:47 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Status Icons
The script changes the icon of the chat window automatically depending on the contacts status. You do not need to do anything...

This post was edited on 08-31-2009 at 05:01 PM by matty.
08-31-2009 05:01 PM
Profile E-Mail PM Find Quote Report
Cerbus
New Member
*


Posts: 3
Joined: Sep 2009
RE: Status Icons
Is there any way to make this work in Windows 7 without using the small icons?

It doesn't seem to work when I'm using Windows 7's default task bar size.
09-19-2009 03:01 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Status Icons
I don't have Windows 7. When I get it installed I will.
09-21-2009 12:35 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Status Icons
quote:
Originally posted by matty
I don't have Windows 7. When I get it installed I will.

My script changed both... Are you changing the big and small icons? If not it's an extra line to the same function call, just a different param...
<Eljay> "Problems encountered: shit blew up" :zippy:
09-22-2009 12:00 AM
Profile PM Find Quote Report
Cerbus
New Member
*


Posts: 3
Joined: Sep 2009
RE: Status Icons
matty, great! I'll be waiting for it :D I prefer the bigger task bar in Windows 7 than the old one.

Spunky, do you have your script uploaded anywhere?
09-22-2009 11:44 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Status Icons
Just add the highlighted line to the function

js code:
function SetIcon (hWnd, nStatus, bIsContactBlocked) {
    var sIcon = MsgPlus.ScriptFilesPath + '\\' + oStatus[nStatus] + (bIsContactBlocked ? '_blocked' : '') + '.ico';
    var hIcon = Interop.Call("shell32", "ExtractIconW", hWnd, sIcon, 0);
    Interop.Call('user32', 'SendMessageW', hWnd, 0x80, 0, hIcon);
>>>    Interop.Call('user32', 'SendMessageW', hWnd, 0x80, 1, hIcon);<<<
}
09-22-2009 12:47 PM
Profile E-Mail PM Find Quote Report
Cerbus
New Member
*


Posts: 3
Joined: Sep 2009
RE: Status Icons
It worked!

Thank you so much matty! :D
09-22-2009 12:55 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Status Icons
quote:
Originally posted by matty
Just add the highlighted line to the function

js code:
function SetIcon (hWnd, nStatus, bIsContactBlocked) {
    var sIcon = MsgPlus.ScriptFilesPath + '\\' + oStatus[nStatus] + (bIsContactBlocked ? '_blocked' : '') + '.ico';
    var hIcon = Interop.Call("shell32", "ExtractIconW", hWnd, sIcon, 0);
    Interop.Call('user32', 'SendMessageW', hWnd, 0x80, 0, hIcon);
>>>    Interop.Call('user32', 'SendMessageW', hWnd, 0x80, 1, hIcon);<<<
}


Just out of interest... Did you do that from what I said or did you research it?
<Eljay> "Problems encountered: shit blew up" :zippy:
09-22-2009 06:23 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Status Icons
I forgot to include it originally.

This is straight from Screenshot Sender 5.
js code:
/*
    Name:       SetWndIcon
    Purpose:    Sets the window icon
    Parameters: None
    Return:     None
*/
function SetWndIcon(hWnd) {
    _debug.getfuncname(arguments);
    _win32.SendMessageW(hWnd, 0x80 /* WM_SETICON */, 0 /* ICON_SMALL */, hScriptIcon);
    _win32.SendMessageW(hWnd, 0x80 /* WM_SETICON */, 1 /* ICON_BIG */, hScriptIcon);
}

This post was edited on 09-22-2009 at 06:33 PM by matty.
09-22-2009 06:33 PM
Profile E-Mail PM Find Quote Report
Pages: (3): « First « 1 [ 2 ] 3 » Last »
« 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