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.