VB icon

Use Microsofts Agents in your apps!

Email
Submitted on: 1/2/2015 10:10:00 PM
By: Ryan Couch (from psc cd)  
Level: Not Given
User Rating: By 2 Users
Compatibility: VB 5.0, VB 6.0
Views: 1066
 
     Taken from Windows Magazine August 1999 Agent is Microsoft's name for the technology that puts those "cute" cartoon characters on the screen while running any Microsoft Office application. This technoloty will be a standard feature of Windows 2000, but you can also add it to Windows 98 or Windows 95 viea a free download at "HTTP://msdn.microsoft.com/workshop/imedia/agent/agentdl.asp" Once you install this update, you can use these characters in your applications, including macros!
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: Use Microsofts Agents in your apps!
' Description:Taken from Windows Magazine August 1999
Agent is Microsoft's name for the technology that puts those "cute" cartoon characters on the screen while running any Microsoft Office application. This technoloty will be a standard feature of Windows 2000, but you can also add it to Windows 98 or Windows 95 viea a free download at "HTTP://msdn.microsoft.com/workshop/imedia/agent/agentdl.asp" Once you install this update, you can use these characters in your applications, including macros!
' By: Ryan Couch (from psc cd)
'
' Returns:you can download the free text-to-speech converter and let it talk to you
'**************************************

Dim objAgent
Dim objChar
Dim objRequest
Dim txtSpeak
Dim strName
set objAgent = CreateObject("Agent.Control.1")
objAgent.Connected = True
strName = "Peedy" 'you can use genie, or merlin, or robby or whatever
objAgent.Characters.Load strName, strName & ".acs"
Set objChar = objAgent.Characters(strName)
'objChar.LanguageID = &h409
objChar.Show
objChar.Speak("Hello! I'm " & strName)
objChar.Play "Wave"
txtSpeak = "What should I say next?"
while txtSpeak > ""
objChar.Speak txtSpeak
'objChar.Play "Hearing_1"
txtSpeak = InputBox("What should I say next?", "Peedy App")
wend
objChar.Speak "Goodbye!"
objChar.Hide
msgbox "Goodbye!", vbokonly, "Peedy App"
Set objChar = Nothing
objAgent.Characters.Unload strName


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.