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

Close Chat Window
Author: Message:
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: Close Chat Window
quote:
Originally posted by Luca
this code don't work..
code:
var finestra = Messenger.OpenChat(contatto.Email);
finestra.Close();
I can open the chat window,but I can't to close because this function genrate this error...
code:
Errore: Proprietà o metodo non supportati dall'oggetto (codice: -2146827850)
       File: example.js. Linea: 27.

I think that the function Close() close a window,not a CHATwindow....
True, you cannot close a chat window using the Close method since it's not available for the ChatWnd object.
Close it using the Win32 API:
code:
Interop.Call("user32", "DestroyWindow", oChatWnd.Handle);

12-06-2007 09:18 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Close Chat Window - by Luca on 11-27-2007 at 03:39 PM
RE: Close Chat Window - by matty on 11-27-2007 at 03:44 PM
RE: Close Chat Window - by Luca on 11-29-2007 at 06:58 PM
RE: Close Chat Window - by Luca on 12-06-2007 at 09:03 PM
RE: RE: Close Chat Window - by vikke on 12-06-2007 at 09:18 PM
RE: Close Chat Window - by felipEx on 12-06-2007 at 09:16 PM
RE: RE: Close Chat Window - by yuping on 12-10-2007 at 03:26 PM
RE: Close Chat Window - by Luca on 12-06-2007 at 09:25 PM
RE: Close Chat Window - by NanaFreak on 12-06-2007 at 11:38 PM
RE: Close Chat Window - by Spunky on 12-06-2007 at 11:53 PM
RE: Close Chat Window - by markee on 12-07-2007 at 05:42 AM
RE: Close Chat Window - by Spunky on 12-07-2007 at 07:42 AM
RE: Close Chat Window - by markee on 12-11-2007 at 07:33 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