The ChatWnds object can be iterated through the Enumerator object of JScript.
A ChatWnd object.
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.
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); }
Object | ChatWnds |
---|---|
Availability | Messenger Plus! Live 4.00 |
ChatWnds Object, ChatWnd Object, JScript's Enumerator Object.