cachedVB
asked on
Microsoft Assistant
How do I add the microsoft assistant to my program? I would also like to have it do the following:
have a subroutine (called whatever you want) with "strsay as String and yesno as Boolean" for the inputs when I call the subroutine.
what this does is it makes the assistant say strsay, and be a normal OK box if yesno is False, or a Yes box and a No box if yesno is True.
Also I would like to be able to have him pop up with a simple call of a subroutine
Is this possible?
have a subroutine (called whatever you want) with "strsay as String and yesno as Boolean" for the inputs when I call the subroutine.
what this does is it makes the assistant say strsay, and be a normal OK box if yesno is False, or a Yes box and a No box if yesno is True.
Also I would like to be able to have him pop up with a simple call of a subroutine
Is this possible?
Make sure that Microsoft Agent 2.o is installed
Add the Agent just like normal controls via the components dialog and place the agent on your form
To get started
Dim m As New AgentObjects.Agent
m.Characters(1).Show
m.Characters(1).Speak "Hello"
There are several characters to choose from. I don't have the Agent installed here at work but I have lots of good agent code at home should someone not give you a fully working code
Add the Agent just like normal controls via the components dialog and place the agent on your form
To get started
Dim m As New AgentObjects.Agent
m.Characters(1).Show
m.Characters(1).Speak "Hello"
There are several characters to choose from. I don't have the Agent installed here at work but I have lots of good agent code at home should someone not give you a fully working code
cachedVB,
These may help
Dang123
Microsoft Agent Tutorial
http://www.freevbcode.com/ShowCode.Asp?ID=2082
Microsoft Agent Tutorial Chapter 1
http://abstractvb.com/code/code714.asp
Microsoft Agent Tutorial Chapter 2
http://abstractvb.com/code.asp?A=715
These may help
Dang123
Microsoft Agent Tutorial
http://www.freevbcode.com/ShowCode.Asp?ID=2082
Microsoft Agent Tutorial Chapter 1
http://abstractvb.com/code/code714.asp
Microsoft Agent Tutorial Chapter 2
http://abstractvb.com/code.asp?A=715
ASKER
Can you please upload the project somewhere and post the link here? Please include the functions I asked for as I tried most of those and failed at doing so.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
cachedVB,
From VB6 (or VB5) check this sample
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=10573&lngWId=1
Dang123
From VB6 (or VB5) check this sample
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=10573&lngWId=1
Dang123
Dang123
Does the code in the URL show balloon with buttons? that is the only thing I couldn't do at the VB end. It seems to be extra functionality for the Office assistant which is not available for the normal Agent
Does the code in the URL show balloon with buttons? that is the only thing I couldn't do at the VB end. It seems to be extra functionality for the Office assistant which is not available for the normal Agent
ASKER
Is this topic dead?
cachedVB
You need to check if the code provided at the URL given by Dang123 has buttons on the balloon. Then make comment on what is acceptable/not acceptable to you
You need to check if the code provided at the URL given by Dang123 has buttons on the balloon. Then make comment on what is acceptable/not acceptable to you
ASKER
It doesn't work for me at all... and from looking at the image posted over there it doesnt seem to work with Yes No buttons. Now another question (which may get rid of the last one): What is VBA and how do I use it (ie. Is that the thing that comes with word? If it is then it's perfect)
Yes, VBA comes with all Office apps including word
If you open a Word document then press ALT F11 (or go to the menu Tools-->Macro-->VisualBasi c Editor)
Then enter tyhe code I provided above and see what you get
If you open a Word document then press ALT F11 (or go to the menu Tools-->Macro-->VisualBasi
Then enter tyhe code I provided above and see what you get
http://www.naspa.com/PDF/2002/1002%20PDF/T0210008.pdf