What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [SOLVED] How to minimize chat window?

[SOLVED] How to minimize chat window?
Author: Message:
V@no
Full Member
***

Avatar
sexy

Posts: 162
Joined: Mar 2004
O.P. Grin  [SOLVED] How to minimize chat window?
Hello!
How can I minimize a chat window (with many chat tabs)?

Thank you.

This post was edited on 11-26-2009 at 09:53 AM by V@no.
11-26-2009 02:47 AM
Profile PM Find Quote Report
SourSpud
Junior Member
**

Avatar
spud, spud, spud, spoon.

Posts: 58
35 / Male / Flag
Joined: Nov 2009
RE: How to minimize chat window?
right click and minimize group
11-26-2009 03:10 AM
Profile E-Mail PM Find Quote Report
V@no
Full Member
***

Avatar
sexy

Posts: 162
Joined: Mar 2004
O.P. RE: How to minimize chat window?
mmmm...this is scripting section, isn't it ;)
11-26-2009 03:13 AM
Profile PM Find Quote Report
SourSpud
Junior Member
**

Avatar
spud, spud, spud, spoon.

Posts: 58
35 / Male / Flag
Joined: Nov 2009
RE: How to minimize chat window?
so you want to do something like /min which will minimize all conversations?
11-26-2009 03:16 AM
Profile E-Mail PM Find Quote Report
V@no
Full Member
***

Avatar
sexy

Posts: 162
Joined: Mar 2004
O.P. RE: How to minimize chat window?
I want find a way within MP!L script to minimize a chat window.

In this topic I found a snippet to close chat window:
code:
Interop.Call("user32", "PostMessageW", ChatWnd.Handle, 0x0111, 40003, 0);

Work great, but with tabbed chats it leaves the chat window in focus (unless of course the closed window was the only chat window opened), so instead of going a long way by tracing which window was last in focus before wlm chat window was opened, I figured it would be much easier just minimize chat window instead...

I realize the consequences of doing so, but in my particular case it won't matter, as it will only be done with a specific account.

This post was edited on 11-26-2009 at 03:46 AM by V@no.
11-26-2009 03:42 AM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: How to minimize chat window?
This should work. It's very basic though. You can change the command to whatever you want :p

js code:
var command = "/min"; //Change the command here

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.substr(0, command.length) == command){
        Interop.Call("user32.dll", "ShowWindow", ChatWnd.Handle, 6 /*SW_MINIMIXE*/);
        return "";
    }
}
<Eljay> "Problems encountered: shit blew up" :zippy:
11-26-2009 06:40 AM
Profile PM Find Quote Report
V@no
Full Member
***

Avatar
sexy

Posts: 162
Joined: Mar 2004
O.P. RE: How to minimize chat window?
Excellent!
Works great. Thank you!
11-26-2009 09:06 AM
Profile 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