Shoutbox

Destroy a Chat Windows - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Destroy a Chat Windows (/showthread.php?tid=68914)

Destroy a Chat Windows by Squelettor on 11-27-2006 at 10:00 PM

Is that possible ??

Thanks

Squelettor


RE: Destroy a Chat Windows by matty on 11-27-2006 at 10:04 PM

code:
ChatWnd.Close(1);
or
code:
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x10, 0, 0);

RE: Destroy a Chat Windows by Squelettor on 11-27-2006 at 10:13 PM

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


RE: Destroy a Chat Windows by CookieRevised on 11-27-2006 at 10:26 PM

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...
RE: Destroy a Chat Windows by Squelettor on 11-27-2006 at 10:30 PM

Interop.Call('user32', 'PostMessageW ', ChatWnd.Handle, 0x10, 0, 0);
-> work perfectly !!

Thank you very much!!

Squelettor


RE: Destroy a Chat Windows by matty on 11-27-2006 at 10:46 PM

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?