-
How can I incorporate the office assitant into VB program? Is there any way? And don't you all agree that all programs should have a cute little paperclip dancing around and watching you? I don't know why Microsoft didn't create an OS assistant for Win2000! ;)
Thanks
~seaweed
-
Sure!
Go here to download the needed programs...http://msdn.microsoft.com/workshop/c-frame.htm?929066716826#/workshop/imedia/agent/default.asp&RLD=79 I think you need the character, Speach control panel, and text to speach engine. (In my code I used the genie, it is the quickest download. If you get any other one, put their name wherever I put Genie.)
Unfortunatley you can't get the paperclip, there is a robot, a wizard, a genie, and a parrot I think.
To use it, in the declarations put:
Dim Genie As IAgentCtlCharacterEx
Const DATAPATH = "genie.acs"
And In THe Load Section of your form put:
Agent1.Characters.Load "Genie", DATAPATH
Set Genie = Agent1.Characters("Genie")
Genie.LanguageID = &H409
And anywhere you want (A button, the load section, or whatever else) put:
Genie.Show
Genie.Speak "Hello World!"
Genie.Hide
AND HE SPEAKS!!!!!!!!
P.S. Just remember to put the control on the form, That gave me a lot of troubles!
Edited by SteveCRM on 02-24-2000 at 08:49 PM