Messenger Plus! Live - Scripting Documentation

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

Return Value

A Emoticon object.

Remarks

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.

Example

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

Function Information

ObjectEmoticons
AvailabilityMessenger Plus! Live 4.10

See Also

Emoticons Object, Emoticon Object, JScript's Enumerator Object.