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

Destroy a Chat Windows
Author: Message:
Squelettor
Junior Member
**

Avatar

Posts: 49
Joined: Jul 2006
O.P. Destroy a Chat Windows
Is that possible ??

Thanks

Squelettor
11-27-2006 10:00 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Destroy a Chat Windows
code:
ChatWnd.Close(1);
or
code:
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x10, 0, 0);

This post was edited on 11-27-2006 at 10:05 PM by matty.
11-27-2006 10:04 PM
Profile E-Mail PM Find Quote Report
Squelettor
Junior Member
**

Avatar

Posts: 49
Joined: Jul 2006
O.P. RE: Destroy a Chat Windows
ChatWnd.Close(1);
-> don't work (ChatWnd don't have the function Close)

Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x10, 0, 0);
-> work but Windows Live Messenger crash... ^^

Squelettor
11-27-2006 10:13 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Destroy a Chat Windows
quote:
Originally posted by Squelettor
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x10, 0, 0);
-> work but Windows Live Messenger crash... ^^
For chat windows you need to use PostMessageW instead of SendMessageW...
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-27-2006 10:26 PM
Profile PM Find Quote Report
Squelettor
Junior Member
**

Avatar

Posts: 49
Joined: Jul 2006
O.P. RE: Destroy a Chat Windows
Interop.Call('user32', 'PostMessageW ', ChatWnd.Handle, 0x10, 0, 0);
-> work perfectly !!

Thank you very much!!

Squelettor
11-27-2006 10:30 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Destroy a Chat Windows
quote:
Originally posted by Squelettor
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x10, 0, 0);
-> work but Windows Live Messenger crash... ^^
it shouldn't

code:
Interop.Call('user32', 'DestroyWindow', ChatWnd.Handle);
code:
Interop.Call('user32', 'PostMessageW', ChatWnd.Handle, 0x10, 0, 0);

blah i should refresh the thread before posting lol

Cook why would SendMessageW crash the WLM?

This post was edited on 11-27-2006 at 10:51 PM by matty.
11-27-2006 10:46 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