Important alert: (current site time 7/16/2013 4:06:25 AM EDT)
 

VB icon

Use Microsofts Agents in your apps!

Email
Submitted on: 8/2/1999
By: Ryan Couch 
Level: Not Given
User Rating: By 2 Users
Compatibility: VB 5.0, VB 6.0
Views: 21419
 
     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!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' 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
'
' Returns:you can download the free text-to-speech converter and let it talk to you
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=2770&lngWId=1'for details.'**************************************

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


Other 1 submission(s) by this author

 


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

8/3/1999 12:47:00 PMVictor Maldonado

Hi! This Code is Great!
I have donloaded some
other languages but I don't know
Their Id's. Can you help me?
(If this comment was disrespectful, please report it.)

 
8/19/1999 11:56:00 PMMaXx

Ummm...where do you put that code in?
(If this comment was disrespectful, please report it.)

 
8/20/1999 12:05:00 AMMaXx

Oops...i'm not very smart...I figured out where it went...
(If this comment was disrespectful, please report it.)

 
10/15/1999 8:12:00 AMdonglei-gu

I like it but how to get it?
need help.
(If this comment was disrespectful, please report it.)

 
1/28/2000 1:52:52 AMCarmen

Please tell me where I can download the text - to - speech converter

Thanks
(If this comment was disrespectful, please report it.)

 
1/29/2000 9:29:18 PMPositron

Great Code! I love it! I've been looking for some code like this for a while now! It's easy to use too!, and short! Thanks a lot!
(If this comment was disrespectful, please report it.)

 

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.