Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hello,

 

Is anyone familiar with incorporating Ms agents into a .net app?

 

i found this information for VB, but it does not appear to be valid for .net

 

In the General | Declarations section of you form, add this code:

 

Dim Merlin As IAgentCtlCharacter 'This _

"creates" Merlin

Const MERLINPATH = "Merlin.acs" '"Merlin.acs" _

is Merlin's character file.

 

Next, add the following code to the form's Load event:

 

Agent1.Characters.Load "Merlin", MERLINPATH '"Loads" _

Merlin.

Set Merlin = Agent1.Characters("Merlin") 'Without _

this code, every time you wanted you make Merlin _

do something, you would have to type _

"Agent1.Characters("Merlin")". With this _

code, you just have to type "Merlin".

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...