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:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Chat window open
Try this code instead, it uses two enumerators to get the current chat windows and to get the contacts in those chats.  I think it should work, I havent tested it though I'm sorry.

code:
function openedChats()
{
var ChatWnds = Messenger.CurrentChats;
var e = new Enumerator(ChatWnds);
for(; !e.atEnd(); e.moveNext())
{
var ChatWnd = e.item();
var ChatWndContacts = ChatWnd.Contacts;
var e = new Enumerator(ChatWndContacts);
for(; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Contact.Blocked = false;
}
}
}

quote:
Originally posted by mlevit
I get this an error:

    code:Error: Object doesn't support this property or method.
           Line: 110. Code: -2146827850.



Line 110: ChatWindow.Blocked = false;

Weird, it works when you go through the entire contact list, but not when you go through your open contact list.

Any way around it?
The problem was you were trying to make the window unblocted, not the contacts in it.

This post was edited on 07-29-2006 at 08:37 AM by markee.
[Image: markee.png]
07-29-2006 08:36 AM
Profile 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