What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Close a Chat Window

Close a Chat Window
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Close a Chat Window
quote:
Originally posted by Mattike
code:
ChatWnd.SendMessage("/close");
That'll only work if the typing area is active, think of doing this when you've blocked that contact...
code:
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x0010/*WM_CLOSE*/, 0, 0);
That's the best thing you can do. :)
There are a lot of other API's you can use.
DestroyWindow - Not the best or even recommended solution.
PostMessageW with WM_CLOSE message

quote:
Originally posted by Mattike
[OFFTOPIC] @Matty: place your [s][/s] tags in your code block. ;) [/OFFTOPIC]
It works fine in IE6 which is what I was using at work at the time.
01-10-2007 02:49 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Close a Chat Window - by questsin on 01-10-2007 at 01:49 AM
RE: Close a Chat Window - by NanaFreak on 01-10-2007 at 01:51 AM
RE: Close a Chat Window - by matty on 01-10-2007 at 02:12 AM
RE: RE: Close a Chat Window - by deAd on 01-10-2007 at 02:30 AM
RE: Close a Chat Window - by questsin on 01-10-2007 at 02:38 AM
RE: Close a Chat Window - by Matti on 01-10-2007 at 02:04 PM
RE: Close a Chat Window - by matty on 01-10-2007 at 02:49 PM


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