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

Chat window open
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Chat window open
There isn't a way to iterate through the opened conversations. Basically what your doing there is blocking every single contact on your list. As well the .Blocked property accepts booleans (true/false) not strings. So it would be
code:
var e = new Enumerator(Messenger.MyContacts);
        for(; !e.atEnd();  e.moveNext())
        {
            var Contact = e.item();
            Contact.Blocked = true;
        }


Cheap way to do it would be to enum all the IMWindowClass windows store their handles in an array, then for each contact open a chat window and check if the handle existed in the array if it did block them, if it didn't close the window. That is going to be VERY slow but the only way I can see of doing it.

I just noticed the ChatWnds Object.

code:
Debug.Trace("Currently opened chat windows:");
var Windows = Messenger.CurrentChats;
var e = new Enumerator(Windows);
for(; !e.atEnd(); e.moveNext())
{
    var ChatWindow = e.item();
    Debug.Trace(" Handle: " + ChatWindow.Handle);
}

So iterate through the chat windows and instead of tracing the handle, have another function to iterate through ChatWindow.Contacts.

[offtopic]
Anyone ever have out of body experiences? Like you feel like your not actually where you are, right now as I am typing this it feels like I am behind myself looking down.
[/offtopic]

This post was edited on 07-29-2006 at 07:15 AM by matty.
07-29-2006 06:03 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Chat window open - by mlevit on 07-29-2006 at 05:14 AM
RE: Chat window open - by matty on 07-29-2006 at 06:03 AM
RE: Chat window open - by mlevit on 07-29-2006 at 08:26 AM
RE: Chat window open - by markee on 07-29-2006 at 08:36 AM
RE: Chat window open - by mlevit on 07-29-2006 at 08:41 AM
RE: Chat window open - by mlevit on 07-29-2006 at 11:08 AM
RE: Chat window open - by NanaFreak on 07-29-2006 at 01:01 PM
RE: Chat window open - by mlevit on 07-29-2006 at 01:05 PM
RE: Chat window open - by leachy08 on 08-02-2006 at 12:29 PM
RE: Chat window open - by leachy08 on 08-04-2006 at 08:54 PM
RE: Chat window open - by mlevit on 08-04-2006 at 10:48 PM
RE: Chat window open - by Geo on 08-05-2006 at 02:48 PM
RE: Chat window open - by leachy08 on 08-08-2006 at 08:58 PM
RE: Chat window open - by NanaFreak on 08-08-2006 at 09:04 PM
RE: Chat window open - by leachy08 on 08-08-2006 at 09:10 PM
RE: Chat window open - by mlevit on 08-08-2006 at 09:15 PM
RE: Chat window open - by leachy08 on 08-09-2006 at 07:49 AM
RE: Chat window open - by mlevit on 08-09-2006 at 09:40 AM
RE: Chat window open - by leachy08 on 08-09-2006 at 12:39 PM
RE: Chat window open - by Geo on 08-09-2006 at 07:56 PM
RE: Chat window open - by leachy08 on 08-10-2006 at 08:00 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