Results 1 to 13 of 13

Thread: Microsoft Agent

  1. #1

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Question

    Can someone please provide me with some information on the Microsoft Agent ActiveX control? I need as much information as possible on how to use it.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Wink

    Just put the activeX on your form and...
    'DECLARATIONS
    'Just add them in and the agent will work fine.
    Dim Genie As IAgentCtlCharacterEx
    Const DATAPATH = "genie.acs"

    'IN LOAD
    Agent1.Characters.Load "Genie", DATAPATH
    Set Genie = Agent1.Characters("Genie")
    Genie.LanguageID = &H409

    'ANYWHERE YOU WANT
    Genie.Show
    Genie.Speak Text1.text
    Genie.hide


    If you didn't download the genie, just replace the names, other than that, I think you can figure it out.


  3. #3

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    Yes, that was on the official Microsoft Agent web page, but I'm afraid that's all I know about it. I have some experience with the Agent as a standalone program, so I know what a few of the commands do, I just want to figure out some of the smaller things. Such as how to remove the text balloon, how to make them do specific animations, etc.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  4. #4
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    That is how I learned, and that is all I needed from the Agent so far. I know somewhere on the microsoft site is the names for each movement. I played with the properties through code and I got it to point, and move around the screen. Sorry but the only good advice is just play with those properties through code.

  5. #5

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Thumbs up Ok

    I guess I'll try a little searching on the web, maybe someone else has figured it out and posted it.

    Thanks for trying!
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  6. #6
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    try this:

    Code:
    Dim Merlin As IAgentCtlCharacterEx
    Dim NewBalloonStyleOption As Integer
    Dim CharLoaded As Boolean
    Dim IgnoreSizeEvent As Boolean
    Dim CurrentIndex As Integer
    Const DATAPATH = "Merlin.acs"
    Const BalloonOn = 1
    Private Sub Command1_Click()
    Merlin.Show
    Merlin.Balloon.Style = Merlin.Balloon.Style And (Not BalloonOn)
    Merlin.Speak Text1.Text
    Merlin.Hide
    End Sub
    Private Sub Form_Load()
        Agent1.Characters.Load "Merlin", DATAPATH
        Set Merlin = Agent1.Characters("Merlin")
        Merlin.LanguageID = &H409
        Text1.Text = "Hello World!"
    End Sub

    ok??

    i have tested this and it seems to work
    let me know though

  7. #7

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Post Ok

    I'll be sure and try that out. But wouldn't the
    Code:
    Merlin.Balloon.Style = Merlin.Balloon.Style And (Not BalloonOn)
    line work better in the Form_Load Sub? It would add a little speed for larger scale programs.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  8. #8

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Exclamation Thanks!

    It worked, I just tried it out.

    Do you have any sample apps that I could learn from other than the microsoft one? I'm still looking for ways to do things.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  9. #9

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Exclamation MSAGENT TUTORIAL!

    I found a great MsAgent Tutorial at http://members.home.com/abstractvb/v...t-msagent1.htm

    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  10. #10
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    It worked, I just tried it out.

    Do you have any sample apps that I could learn from other than the microsoft one? I'm still looking for ways to do things.
    Would you like me to simplify one of them for you?

    What would you like in a sample app, because I have free time and would be willing to design a quick one for you, and find out things you could not.

    BTW I thought the microsoft agent documentation was pretty good, if you haven't downloaded that, i think it is a zip file which includes documentation for everything?? to do with the Agent??
    oh well, it's ur choice where you put the balloon less bit
    i rushed it a bit, and did not really think too much about it.

  11. #11

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Question ?????

    Documentation? Where is that?
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  12. #12
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    U can download it directly from this link -->
    Download the Complete Microsoft Documentation

    or go to the MSAGENT Download Site
    hope i helped

  13. #13
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    [B]try this:

    Code:
    Dim Merlin As IAgentCtlCharacterEx
    Dim NewBalloonStyleOption As Integer
    Dim CharLoaded As Boolean
    Dim IgnoreSizeEvent As Boolean
    Dim CurrentIndex As Integer
    Const DATAPATH = "Merlin.acs"
    Const BalloonOn = 1
    Private Sub Command1_Click()
    Merlin.Show
    Merlin.Speak Text1.Text
    Merlin.Hide
    End Sub
    Private Sub Form_Load()
        Agent1.Characters.Load "Merlin", DATAPATH
        Set Merlin = Agent1.Characters("Merlin")
        Merlin.LanguageID = &H409
        Text1.Text = "Hello World!"
        Merlin.Balloon.Style = Merlin.Balloon.Style And (Not BalloonOn) 'is that better?
    
    End Sub

    ok??

    is that better??

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