Messenger Plus! Live - Scripting Documentation

The ChatWnds object can be iterated through the Enumerator object of JScript.

Return Value

A ChatWnd object.

Remarks

Each ChatWnds object keeps track of its own iterator. This means that even if two objects refer to the same collection of chat windows, they'll contain two different iterators. This is why ChatWnds objects must first be assigned to variables before being used in an Enumerator.

Example

The current user must be signed for this code to succeed.

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);
}

Function Information

ObjectChatWnds
AvailabilityMessenger Plus! Live 4.00

See Also

ChatWnds Object, ChatWnd Object, JScript's Enumerator Object.