VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Use Microsofts Agents in your apps

by Ryan Couch (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

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 "https://msdn.microsoft.com/workshop/imedia/agent/agentdl.asp" Once you install this update, you can use these characters in your applications, including macros!

Code Returns
you can download the free text-to-speech converter and let it talk to you

Rate Use Microsofts Agents in your apps

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

Download this snippet    Add to My Saved Code

Use Microsofts Agents in your apps Comments

No comments have been posted about Use Microsofts Agents in your apps. Why not be the first to post a comment about Use Microsofts Agents in your apps.

Post your comment

Subject:
Message:
0/1000 characters