Voice.AgentCtl Property

 Voice.AgentCtl  (read-only, Object)
 
The Agent Control object used by ACP (specifically the IDispatch of the Agent Control). There is no provision for hooking the events generated by this instance of the Agent Control. They are sunk within ACP itself.

Syntax

Voice.AgentCtl

The property syntax has these parts:

Part Description
Value (Object) The Agent Control object used by ACP (specifically the IDispatch of the Agent Control). There is no provision for hooking the events generated by this instance of the Agent Control. They are sunk within ACP itself.

Remarks

This property returns ACP's instance of the Agent Control (specifically its IAgentCtlEx interface). You have no control or access to the events generated by the Agent Control, as these are bound to handlers within ACP itself. Of course, you can create your own instance of the Agent Control, light up a character and bind events from that character to your script... You just don't have access to ACP's character events.

If you are going to directly program the Agent via ACP scripts or ActiveX Automation, I strongly recommend that you download the Word versions of the Programming Agent documents and print them.

A detailed description of the things you can do with an Agent character in ACP is beyond the scope of this document. I suggest you browse the he Microsoft online document Programming the Agent Control and the other documentation that was suggested for download and reference.