|
-
Apr 29th, 2000, 06:31 AM
#1
Thread Starter
Hyperactive Member
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.
-
Apr 29th, 2000, 09:09 AM
#2
Frenzied Member
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.
-
Apr 29th, 2000, 09:16 AM
#3
Thread Starter
Hyperactive Member
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.
-
Apr 29th, 2000, 09:21 AM
#4
Frenzied Member
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.
-
Apr 29th, 2000, 10:02 AM
#5
Thread Starter
Hyperactive Member
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!
-
Apr 29th, 2000, 10:44 AM
#6
Conquistador
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
-
Apr 29th, 2000, 12:12 PM
#7
Thread Starter
Hyperactive Member
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.
-
Apr 29th, 2000, 01:32 PM
#8
Thread Starter
Hyperactive Member
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.
-
Apr 29th, 2000, 02:12 PM
#9
Thread Starter
Hyperactive Member
MSAGENT TUTORIAL!
-
Apr 29th, 2000, 06:54 PM
#10
Conquistador
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.
-
Apr 29th, 2000, 11:38 PM
#11
Thread Starter
Hyperactive Member
?????
Documentation? Where is that?
-
Apr 30th, 2000, 02:48 PM
#12
Conquistador
U can download it directly from this link -->
Download the Complete Microsoft Documentation
or go to the MSAGENT Download Site
hope i helped
-
Apr 30th, 2000, 02:50 PM
#13
Conquistador
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|