Shoutbox

PlusWnd.Close - 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: PlusWnd.Close (/showthread.php?tid=84875)

PlusWnd.Close by Noixe on 07-17-2008 at 09:42 AM

Hello,

I try this code:

e = new Enumerator(Messenger.CurrentChats);
      for (; !e.atEnd(); e.moveNext())
           PlusWnd.Close(1);

but it don't close my active chat windows.

Do you know the reason?

If i want close only some Chats, which code I would have to use?

Thanks.


RE: PlusWnd.Close by vaccination on 07-17-2008 at 09:47 AM

You haven't made 'e' a variable, and the PlusWnd.Close(1); needs to be inside parenthesis, like this:

code:
var e = new Enumerator(Messenger.CurrentChats);
      for (; !e.atEnd(); e.moveNext())
{
           PlusWnd.Close(1);
}


RE: PlusWnd.Close by Noixe on 07-17-2008 at 09:54 AM

No, parenthesis are necessary only if there are two or more istructions.


RE: PlusWnd.Close by vaccination on 07-17-2008 at 10:35 AM

Oh hang on, PlusWnd.Close closes windows created by plus scripts, not chat windows.


RE: PlusWnd.Close by Noixe on 07-17-2008 at 11:22 AM

It close only windows interface written in XML?

Is there a function to do the same thing with chat windows?


RE: PlusWnd.Close by Volv on 07-17-2008 at 12:41 PM

......*

Interop.Call("user32", "SendMessageW", e.item().Handle, 0x10, 0,0);



*Yes, the responses in this thread called for double ellipses.


RE: PlusWnd.Close by Noixe on 07-17-2008 at 04:26 PM

Ok, thanks