Results 1 to 2 of 2

Thread: Do you know how to do this ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Guadalajara, Jalisco, Mex
    Posts
    105

    Do you know how to do this ?

    Hi. I found this code in a web site in microsoft, and tells how to create
    an instance of ms-agent.

    Dim AgentControl As New Agent
    Dim robby As Object


    AgentControl.Connected = True ' necessary for IE3
    AgentControl.Characters.Load "Robby",
    "http://agent.microsoft.com/agent2/chars/robby/robby.acf"
    Set robby = AgentControl.Characters("Robby")
    robby.LanguageID = &H409 ' needed under some conditions (English)
    robby.Get "State", "Showing, Speaking"
    robby.Get "Animation", "Greet, GreetReturn"
    robby.Show
    robby.Get "State", "Hiding"
    robby.Play "Greet"
    robby.Speak "Hello, World!"
    robby.Hide



    But, I want to create the agent with late binding, like this:

    Dim AgentControl As Object
    Dim robby As Object

    set AgentControl = CreateObject("xxxx") . . . etc

    But, i cant find the name of the library or i can't create the object.

    How i do that ?

    Thanks !!!

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    I have discovered that you can add the Agent as a control under components, or as a reference in the project. Does this info help?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width