function OnLoad() {
AgentControl.Connected = true // temp patch for IE4 PP1
AgentControl.Characters.Load("Merlin", "c:\\program files\\microsoft
agent\\characters\\merlinsfx.acs");
// Note that JScript strings require 2 slashes for every single slash in a
string
Merlin = AgentControl.Characters.Character("Merlin")
// Note that use of the Character method, which is optional in VBScript, is
required in JScript
Merlin.Get("state", "Showing, Speaking")
Merlin.Get("animation", "Greet, GreetReturn")
Merlin.Show(); // Unlike VBScript, JScript requires parens even in the
absence of arguments
Merlin.Get("state", "Hiding")
Merlin.Play("Greet");
Merlin.Speak("Hello, Dan Van Roekel.")
Merlin.Play("GreetReturn");
Merlin.Speak("Might I interest you in a wonderful set of Encyclopedia
Brittanica's?")
Merlin.Speak("It includes a 27 volume set of books, that's right 27, it
includes the new controversial letter")
Merlin.Speak("that congress is trying to include into the english
alphabet.")
Merlin.Speak("Oh Yeah! This is Merlin, and I'm doing this from a web
page, baby!")
Merlin.Hide()
}
everything works fine, however I have a few questions...
in Merlin.Get what's the difference between say state and animation, is
there a list of "state"'s?
also what other things are besides .Get, .Show, .Play and .Speak? is there
a list of these too?
is there any sites that have some decent tutorials on this?
I think Java looks the easiest to code, what do you think?
>in Merlin.Get what's the difference between say state and animation, is
>there a list of "state"'s?
>also what other things are besides .Get, .Show, .Play and .Speak? is there
>a list of these too?
Go to http://www.microsoft.com/workshop/prog/agent/ , click on
"Documentation" in the left frame and scroll to the bottom of the right
frame to dowload all the Agents documentation in Word format. The file
"Programming the Control" will tell almost you everything you want to know
(it is also accessible online).
>is there any sites that have some decent tutorials on this?
http://www.argolink.com/agent/
http://www.educationx.com/agents/
http://www-na.biznet.com.gr/sail/isa/windows_05.htm
...
>I think Java looks the easiest to code, what do you think?
Since checking for errors is needed to script pages that can use local
animation files, VBScript is better. You can also checkout my VB tutorial
pages at http://www.cam.org/~raybiss/agents/vb/ since what is shown there
can also be applied to VBScript.
Regards,
Raymond