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

PlusWnd.Close
Author: Message:
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. PlusWnd.Close
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.

This post was edited on 07-17-2008 at 09:44 AM by Noixe.
07-17-2008 09:42 AM
Profile E-Mail PM Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: PlusWnd.Close
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);
}


This post was edited on 07-17-2008 at 09:47 AM by vaccination.
[Image: jumbled.png]
07-17-2008 09:47 AM
Profile PM Find Quote Report
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: PlusWnd.Close
No, parenthesis are necessary only if there are two or more istructions.
07-17-2008 09:54 AM
Profile E-Mail PM Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: PlusWnd.Close
Oh hang on, PlusWnd.Close closes windows created by plus scripts, not chat windows.
[Image: jumbled.png]
07-17-2008 10:35 AM
Profile PM Find Quote Report
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: PlusWnd.Close
It close only windows interface written in XML?

Is there a function to do the same thing with chat windows?
07-17-2008 11:22 AM
Profile E-Mail PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: PlusWnd.Close
......*

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



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

This post was edited on 07-17-2008 at 12:58 PM by Volv.
07-17-2008 12:41 PM
Profile PM Find Quote Report
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: PlusWnd.Close
Ok, thanks
07-17-2008 04:26 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