Advertisement
2_2002-2004 Miscellaneous #118679

Use Microsofts Agents in your apps!

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!

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
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
Původní komentáře (3)
Obnoveno z Wayback Machine