The Emoticons object can be iterated through the Enumerator object of JScript.
A Emoticon object.
Each Emoticons object keeps track of its own iterator. This means that even if two objects refer to the same collection of Emoticons, they'll contain two different iterators. This is why Emoticons 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("Custom emoticons of the current user:"); var Emoticons = Messenger.CustomEmoticons; var e = new Enumerator(Emoticons); for(; !e.atEnd(); e.moveNext()) { var Emoticon = e.item(); Debug.Trace(" " + Emoticon.Shortcut); }
Object | Emoticons |
---|---|
Availability | Messenger Plus! Live 4.10 |
Emoticons Object, Emoticon Object, JScript's Enumerator Object.