Move Event
[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]
-
Description
-
Occurs when a character is moved.
-
Syntax
-
Sub agent_Move (ByVal CharacterID, ByVal X, ByVal Y, ByVal Cause**)**
Part Description CharacterID Returns the ID of the character that moved. X Returns the x-coordinate (in pixels) of the top edge of character frame's new location as an integer. Y Returns the y-coordinate (in pixels) of the left edge of character frame's new location as an integer. Cause Returns a value that indicates what caused the character to move. 1 The user dragged the character.
2 Your client application moved the character.
3 Another client application moved the character.
4 The Agent server moved the character to keep it onscreen after a screen resolution change.
Remarks
This event occurs when the user or an application changes the character's position. Coordinates are relevant to the upper left corner of the screen. This event is sent only to the clients of the character (applications that have loaded the character).
See Also