What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Thx] DestroyWindow on chatwindow = crash?

[Thx] DestroyWindow on chatwindow = crash?
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: DestroyWindow on chatwindow = crash?
Here's code to do each way (I'm bored :P). I recommend you use the last one ;)

[list=1][*]Send "/close" to the chat window (not recommended because it shows up in the recent messages list and won't work if commands are disabled)
code:
pChatWnd.SendMessage('/close');
[*]Send a WM_COMMAND message with the menu identifier of the Close menu item
code:
Interop.Call('User32.dll', 'SendMessageW', pChatWnd.Handle, 0x111 /* WM_COMMAND */, 40017, 0);
[*]Send a WM_CLOSE message
code:
Interop.Call('User32.dll', 'SendMessageW', pChatWnd.Handle, 0x0010 /* WM_CLOSE */, 0, 0);
[/list]
03-24-2007 05:54 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Thx] DestroyWindow on chatwindow = crash? - by Flash on 03-23-2007 at 11:39 PM
RE: DestroyWindow on chatwindow = crash? - by deAd on 03-24-2007 at 12:12 AM
RE: DestroyWindow on chatwindow = crash? - by Flash on 03-24-2007 at 05:29 PM
RE: DestroyWindow on chatwindow = crash? - by deAd on 03-24-2007 at 05:54 PM
RE: DestroyWindow on chatwindow = crash? - by Flash on 03-24-2007 at 06:21 PM
RE: DestroyWindow on chatwindow = crash? - by CookieRevised on 03-24-2007 at 11:49 PM
RE: [Thx] DestroyWindow on chatwindow = crash? - by Flash on 03-25-2007 at 12:41 AM
RE: [Thx] DestroyWindow on chatwindow = crash? - by CookieRevised on 03-25-2007 at 12:47 AM
RE: [Thx] DestroyWindow on chatwindow = crash? - by Flash on 03-25-2007 at 12:49 AM


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