Shutdown Event

Description

Occurs when the user explicitly shuts down (exits) Microsoft Agent.

Syntax

Sub agent_Shutdown()

Remarks

When the user explicitly chooses Exit on the pop-up menu on the Microsoft Agent taskbar icon and confirms the choice in the warning message box, the server sends this event to all connected clients and then exits. The server also sets the control's Connected property to False. Any subsequent calls you make to the server will fail. You may want to handle this error condition.

-----------------------------------------------------

Size Event

Description

Occurs when a character's size changes.

Syntax

Sub agent_Size (ByVal CharacterID, ByVal Width, ByVal Height)

Value Description
CharacterID Returns the ID of the character that moved.
Width Returns the character frame's new width (in pixels) as an integer.
Height Returns the character frame's new height (in pixels) as an integer.

Remarks

This event occurs when an application changes the size of a character. This event is sent only to the clients of the character (applications that have loaded the character).

See Also

Move event