Working with Microsoft Agent Control in vb.net

Working with Microsoft Agent Control:

  • Microsoft agent characters files will have .acs as its extension (characters in search option (dog (Rover), Merlen 9man), . . . . .)
  • Agent characters will have individual capabilities based on the Agent Character File

Take New WINFORM

Rclick on Tool Box and select Add tab

Name: COM components

Rclick on COM components tab (In opened Window) under this

Check    Microsoft agent Control2.0 Untitled OK

Drag & drop Agent Control on the Form.

Drag & drop ListBoxControl beside Agent Control

 

Screenshot_63

 

Double click on Form_Load

‘Form_Load

AxAgent1.Characters.Load (“Merlin”, “C: \Windows\msagent\chars\                                                                                                              merlin.acs”)

AxAgent1.Characters (“Merlin”).Show ()

For each an as String in    {To list out animations on}

AxAgent1.characters (“Merlin”).Animation Names

‘ListBox1_SelectedIndexChanged

AxAgent1.Characters (“Merlin”).Play (ListBox1.SelectedItem)

(Execute)