ActivateInput Event

[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]

Description

Occurs when a client becomes input-active.

Syntax

Sub agent_ActivateInput**(ByVal** CharacterID**)**

Part Description
CharacterID Returns the ID of the character through which the client becomes input-active.

 

Remarks

The input-active client receives mouse and speech input events supplied by the server. The server sends this event only to the client that becomes input-active.

This event can occur when the user switches to your Command object, for example, by choosing your Command object entry in the Commands Window or in the pop-up menu for a character. It can also occur when the user selects a character (by clicking or speaking its name), when a character becomes visible, and when the character of another client application becomes hidden. You can also call the Activate Method (with State set to 2) to explicitly make the character topmost, which results in your client application becoming input-active and triggers this event. However, this event does not occur if you use the Activate Method method only to specify whether your client is the active client of the character.

See Also

DeactivateInput event, Activate method