Add to Google

Integerate Your Site With Talking Characters - Ms Agents

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Integerate Your Site With Talking Characters - Ms Agents

AlanDS
Hello All
IPB Image
Have You ever seen the above MS Agents in any of the websites ? They Demonstrate things,Explain,Greet your visitor, Give Information about the user and above all they give a pretty cool cool to your website! Want them on your site?
This tutorial will explain on how to Integerate MS Agents in your website!

For those who cannot understand what I am talking about or want to see a sample check them on sample page! ->->-> http://www.technik.co.in/docs/agent_sample.htm

This tutorial may feel every long but beleieve me I have made it easy as much as possible Advanced users may just take a time upto 10 Mins.

Some of you might not be able to see this Agent in the above link there are plenty of reasons ->

1) You donot have required componenets to view them. ( Check More for the solution)
2) You donot have ActiveX controls enabled in your browser
3) Your firewall might be blocking the (agentsvr32.exe) file , if your firewall propmts for a permisiion to agentsvr32.exe allow it!
4) There could be many more reasons but users with Windows will have a cool stay!

What it is?
Actually this thing is nothing but calling off the Microsoft Agent(s) with most of them in Mircrosoft Office to your webpage with certain actions and speeches.This really gives a great look to your website.

What you require?
Actually there are 4 components required to see these/this agent(s),your visitor may too need this component(s) to view your cool website.Donot worry all the components donot exceed 2MB size! and THE MOST important is it only works in Interent Explorer as far as i know, I donnot know abt Firefox.

Now how to know whether you or the user has or hasn't the required components?

Visit this page, this page will automatically detect the required components and make a checklist and will give you the download link too if you have missed some!

If you already have all the required components youm will be perfectlly able to see the sample page.

Check Components Here ->> *** Components Check & Download Here ***

Ohh! Now done with the every components! Lets start the work.

What you need to do?
Just costumize the full HTML code inbetween your BODY tags.

The main Script!This is the main script : ( THIS IS THE SCRIPT PROGRAMMED FOR THE AGENT : MERLIN )
CODE
<!--Insert this in your BODY TAG--><OBJECT ID="Rainbow" width="0" height="0"
CLASSID="CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F"
CODEBASE="#VERSION=2,0,0,0">
</OBJECT>
<OBJECT ID="TruVoice" width="0" height="0"
CLASSID="CLSID:B8F2846E-CE36-11D0-AC83-00C04FD97575"
CODEBASE="#VERSION=6,0,0,0">
</OBJECT>

<script language="JavaScript" type="text/javascript">
// Script By Technik.Co.In CopyRight 2006 You can copy this script but
you MUST leave the source " Technik.co.in ".
<!--//
var Char;
var UsedChars;
var CharID;
var CharACS;
var CharLoaded;
var LoadReq;
var HideReq;

UsedChars = "Char";

CharID = "Char";
CharACS = "";
CharLoaded = false;

Window_OnLoad();

function Window_OnLoad() {
Rainbow.Connected = true;

CharLoaded = LoadLocalChar(CharID, CharACS);

if (!CharLoaded) {
CharLoaded = LoadLocalChar(CharID, "");
}

if (CharLoaded) {
SetCharObj();
}
CheckLoadStatus();
}

function LoadLocalChar(CharID, CharACS) {
Rainbow.RaiseRequestErrors = false;
if (CharACS == "") {

LoadReq = Rainbow.Characters.Load(CharID);
}
else {
LoadReq = Rainbow.Characters.Load(CharID, CharACS);
}
Rainbow.RaiseRequestErrors = true;

if (LoadReq.Status != 1) {
return(true);
}
return(false);
}

function SetCharObj() {
Char = Rainbow.Characters.Character(CharID);
Char.LanguageID = 0x409;
}

function CheckLoadStatus() {
if (!CharLoaded) {
LoadError();
return(false);
}

window.status = "";
AgentIntro();
return(true);
}
// *** ERROR MESSAGE DISPLAYED WHEN REQUIRED
COMPONENTS ARE MISSING - Technik.Co.In ***
function LoadError() {
var strMsg;
window.status = "";
strMsg = "Error Loading Character: " + CharID + "\n";
strMsg = strMsg + "This Microsoft Agent Script requires the
character(s):\n";
strMsg = strMsg + UsedChars;
alert(strMsg);
}
// *** !!! ERROR MESSAGE END !!! - Technik.Co.In ***
function InitAgentCommands() {
Char.Commands.RemoveAll();
}

function AgentIntro() {
InitAgentCommands();

// *** CAREFUL : AGENT SCRIPT BEGINS HERE - Technik.Co.In ***



// *** CAREFUL : AGENT SCRIPT ENDS HERE - Technik.Co.In ***
}
//-->
</script>

<script language="JavaScript" type="text/javascript" for="Rainbow"
event="Click(CharacterID, Button, Shift, X, Y)">
<!--
// This event is a exaple on how to agent will react on single
click! - Technik.Co.In

Char.StopAll();
Char.Play ("Alert");
Char.Speak ("Hey, watch it with that **** mouse!|Oh that tickles!|ROFL!");
Char.Play ("Blink");
Char.Play ("RestPose");
// -->
</script>

<script language="JavaScript" type="text/javascript" for="Rainbow"
event="DblClick(CharacterID, Button, Shift, X, Y)">
<!--
// This event is a exaple on how to agent will react on double
click! - Technik.Co.In

Char.StopAll();
Char.Play ("Alert");
Char.Speak ("Hey, watch it with that pointer! OK i'll go.|Oh you double
clicked me it tickles more. Goodbye!|OK Bye!");
Char.Hide();
//-->
</script>


Find """ AGENT SCRIPT BEGINS HERE """" and insert CHAR script there! These things may feel though isn`t it? But read the whole tut i have just expanded it

Now The Character Script !
You may have already visited our Sample Page
I will take the Sample page as the example for the purpose of the character script!

This is the agent script as there in the Sample Page.

<!-- This Script should be placed in between the Agent Script-->
CODE
Char.MoveTo(0, 0);
Char.Show();
Char.MoveTo(900, 500);
Char.Play("Greet");
Char.Speak("Hello and welcome to Technik.CO.IN");
Char.Play("Pleased");
Char.Speak("My name is Merlin! Its Nice to Meet u!");
Char.Play("Think");
Char.Speak("Now I am here for testing purposes, but soon I will appear at many places!");
Char.Play("Process");
Char.Speak("My reports show that u have comehere to test me");
Char.Play("Search");
Char.Play("GetAttentionContinued");
Char.MoveTo(584, 321);
Char.Play("Suggest");
Char.Speak("\\Chr=\"Whisper\"\\Take Me With You!.");
Char.Play("Sad");
Char.Speak("I know u would not dissappoint me");
Char.Play("Think");
Char.Play("Pleased");
Char.Speak("do u desire to take me with you?");
Char.MoveTo(10, 200);
Char.Speak("Click at the link named Take this agent, to take me with you.");
Char.Play("Pleased");
Char.Speak("\\Chr=\"Whisper\"\\I think the webmaster is coming, time to go bye!.");
Char.Hide();


<!--Chararacter Script Ends-->

Now many of u might ask whats that?

The Commands which are present ONLY in the sample script. ( There are lot fo more commands refer below) ::::

**** List Of all Commands and actions can be found below ****

Char.Show(); ---> Displays or enables the Agent for which the cript is configured.

Char.MoveTo(x, y); ---> Move the character to desired place ( X= Width ,, Y=Height)

Char.Play("ACTION"); ---> Plays the desired Action ( Action needs to be replaced with the desired action see below for the action(s) list )

Char.Speak("U R Message"); ---> The Message that you want your character to talk! ( Replace Your Message)

Char.Speak("\\Chr=\"Whisper\"\\U r Message Here"); ---> " Whisper Command " the character talks in a whispering way.

Char.Think("U r Message"); ---> Only the white message box appears with your message in it. It displays as the agent is thinking.

>>>>>Breaking up the commands<<<<<


The Commands ->>>>

1) * Char.Speak ("Welcome To Technik.Co.In); *

This Command indicated your character to speak the test inside the brackets and quotes.
This works through the TTS Engine which is one of the four componenets.

2) * Char.Show/Hide(); *

This Command respectively shows or hides the agent.

3) * Char.MoveTo(XW, YL) *

This Command will move your character to the desired height and width.
As for Merlin he takes a flight to the desired place.

4 * Char.Play("Desired Action") *


This is the most important action of all the agents.This Command plays the animation u desire.
All you have to do is Pick the animation from the list given below and replace it in place of Desired Action.
Without this it wud be Bad!

Now almost we have reached at last.
And Below we are going to see list of animations !!!


Animations for the agents..........
CODE
("Acknowledge")
("Alert")
("Announce")
("Blink")
("Confused")
("Congratulate")
("Decline")
("DoMagic1")
("DoMagic2")
("DontRecognize")
("Explain")
("GestureDown")
("GestureLeft")
("GestureRight")
("GestureUp")
("GetAttention")
("GetAttentionContinued")
("GetAttentionReturn")
("Greet")
("Hide")
("Hearing_1")
("Hearing_2")
("Hearing_3")
("Idle1_1")
("Idle2_1")
("Idle1_4")
("Idle1_3")
("Idle1_2")
("Idle2_2")
("Idle3_1")
("Idle3_2")
("LookDown")
("LookDownBlink")
("LookDownReturn")
("LookDownLeft")
("LookDownLeftBlink")
("LookDownLeftReturn")
("LookRight")
("LookRightBlink")
("LookRightReturn")
("LookUp")
("LookUpBlink")
("LookUpReturn")
("LookUpLeft")
("LookUpLeftBlink")
("LookUpReturn")
("LookUpRight")
("LookUpRightBlink")
("LookUpRightReturn")
("MoveDown")
("MoveLeft")
("MoveRight")
("MoveUp")
("Pleased")
("Process")
("Processing")
("ReadContinued")
("Read")
("ReadReturn")
("Reading'")
("RestPose")
("Sad")
("Search")
("Show")
("Searching")
("StartListening")
("StopListening")
("Surprised")
("Suggest")
("Think")
("Thinking")
("Uncertain")
("Wave")
("Write")
("WriteReturn")
("WriteContinued")
("Writing")


^^^ So these are the actions ^^^

So at last thig BIG tutorial has ended!

Was the tut good?

Notice from BuffaloHELP:
Copied from http://technik.co.in/docs/agent_tut.htm You need to quote if it was already published.

 

 

 


Comment/Reply (w/o sign-up)

Lyon2
That i did not knew!

Thanks, i'll definatly use it in my new websites.

Comment/Reply (w/o sign-up)

leeleelee
Is there a link to see it in action on your site or something

Comment/Reply (w/o sign-up)

Blue Lightning
Hmmm, I don't realy like them.... And they don't really fit into my website very well... And most people wouldn't alow an unknown website like mine to run soething on their computer.

Comment/Reply (w/o sign-up)

Lyon2
leeleelee, you can see it in action here:

http://www.technik.co.in/docs/agent_sample.htm

But you need to have a windows operative system (windows xp) and you can only see it with internet explorer, at least not with mozilla firefox. With the other browsers i don't know if you can see.

Comment/Reply (w/o sign-up)

BuffaloHELP
Ah... I was hoping this can be similar to SitePal http://www.oddcast.com/sitepal/ Is there anyway your tutorial can accomodate voice dub?

Comment/Reply (w/o sign-up)

Outsider
QUOTE(AlanDS @ Apr 24 2006, 07:28 PM) *

Hello All

Have You ever seen the above MS Agents in any of the websites ? They Demonstrate things,Explain,Greet your visitor, Give Information about the user and above all they give a pretty cool cool to your website! Want them on your site?
This tutorial will explain on how to Integerate MS Agents in your website!


WoW! I have never seen such thing before.

I believe that this has not become famous yet. (Since I have never seen this at any website).

But the two greatest demerits are that

Internet Explorer must be Used

The software of the Microsoft asistant must be installed.

These can be the basic reasons of why this is not included in Big Websites!

Comment/Reply (w/o sign-up)

AlanDS
QUOTE(Outsider @ May 2 2006, 10:30 PM) *

WoW! I have never seen such thing before.

I believe that this has not become famous yet. (Since I have never seen this at any website).

But the two greatest demerits are that

Internet Explorer must be Used

The software of the Microsoft asistant must be installed.

These can be the basic reasons of why this is not included in Big Websites!


Majority of the people use Internet Explorer these days. But people are now shifting to Mozilla Firefox. But for now, at the fact that "Internet Explorer must be Used" cannot be considered as a major disadvantage because of the large no. of users of IE

For your "The software of the Microsoft asistant must be installed." demerit, most of them use windows OS and I have seen many switching to Windows XP recently. It has Merlin preinstalled and hence Merlin is recommended for the website use. So this too cannot be considered as a major demerit.

This technique has demerits but they are not Major. A great ammount of people can see the assistants. Some people may also prefer to download it. So this can be used to draw more and more users to your website.

 

 

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. ms agents - 142.84 hr back. (1)
Similar Topics

Keywords : integerate, site, talking, characters, ms, agents

  1. How Can Rss Feed From Other Web Site?
    (3)
  2. Creating Rss Feeds For Wapsites
    How to display rss feeds in a php enabled site (5)
    Anyone who wants to help me? I want my site to have this feature but I don't know how.
    /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Hope you could me
    with embedding these xml files in my wml pages.. Moved to the HTML, XML ect.. forum ....
  3. Help Aligning My Site Into The Centre In Firefox
    site aligns to the centre in ie but not in firefox (5)
    I'm developing a new layout and so far, in my opinion, everything's going fine except for
    one thing. That's the way in which the whole layout is aligned. In IE6, the entire thing aligns
    beautifully in the centre whereas in firefox, it aligns leftwards. To get around this so far I'm
    using this java script: CODE         if (screen.width > 880 && navigator.appName !==
    "Microsoft Internet Explorer")  {        window.resizeTo(880,window.screen.availHeight);     }
       As you can imagine, people won't be too happy about having their browser r....
  4. Live Video (using Webcam) On Site?
    just like jennycam (2)
    I have a webcam and I want my site to have a live video of me (or my room, whatever) whenever
    I'm online (e.g. JennyCam, etc.). I want it to occupy a small portion of my webpage and it
    should be unobtrusive. It doesn't even matter if the video is choppy or grainy. Is there a
    script or a free program for this? I'm sure there is but does anyone here know it? Thanks.....
  5. Basic Ways To Speed Up Your Web Site
    (26)
    Speed is certainly one of the most important factors when it comes to making a successful web site.
    These days’ people have high expectations, they expect a web site to load as fast as an application
    on their operating system, and therefore even a few seconds of waiting can frustrate them or leave
    altogether. A good website should take about 8-12 seconds (for a 56K) to load. The website owner is
    going to have to decide how fast its pages are going to be, for example for a multimedia or a flash
    site they can afford to be a bit slower than others provided that the users k....
  6. Title Attribute
    and HTML entities for special characters (5)
    Hi, I've had this trouble for a time now, I use dreamweaver to develop the sites I work with,
    and dw always writes the code for me (not that I don't know anything about xhtml, in fact i
    consider myself and advanced user of xhtml, but I know that its faster to use dreamweaver to code
    than write it down from scratch, and I can still fix the little issues that dw generates into the
    code). But the fact is that I work with websites that need the content in spanish, so I use html
    entities to declare special characters such á é í ó ú or ñ, all of which always behave we....
  7. Ie5 Mac Does Not See My Site
    It shows the body bg image only... (11)
    Remember that site layout I was hacking down for IE? Which by the way I didnt really like, but it
    was the customer's design... and yes, he is not a graphic designer hehe... Anyway I was really
    surprised that I got to the solution and fixed it... but as I'm testing between browsers, I come
    to see that Internet Explorer in Mac does not show nothing of my page, yet the source code is there,
    if you click command + e in order to see the html source code, its all there! But all I can see from
    the page itself is the body background-image... I tried removing the docty....
  8. Redesigning A Web Site For Php?
    Or Modifying an existing one? (4)
    I have recently built (by hand coding) a web site that includes about 27 pages and a two-level
    folder structure, and since I've been learning a few things about php includes and that
    sidebar-ul link generator (and hopefully some more stuff soon), I am thinking that I will re-create
    the same site using these new-found tools. What I would like to get out of this topic is your
    opinion about whether I should go about this by one of the following two methods: First, I could
    start from scratch and use Includes and the side bar generator and build an entirely new site, o....
  9. What Is It.....
    what is the site (3)
    Hello i was wondering what is the site for XML forums i want to put a xml forum on my server when i
    get it running please tell me....
  10. A Good Space For Learn Html
    web site link (5)
    Hi i find this web site you can learn html lan very fast and very easy woow i found it many
    tutorials go http://www.w3schools.com/ its really good website /rolleyes.gif' border='0'
    style='vertical-align:middle' alt='rolleyes.gif' /> ....
  11. Add Individuation To Your Site
    very good try... (4)
    lots of html fans make varied and beautiful webpage,which look larruping...i will introduce a way to
    add individuation as if not very good.lol:exactly speaking,it is a easy script. type the code below
    in : CODE 100) { seed--; var cmd="scroll(" + seed + ")";
    timerTwo=window.setTimeout(cmd,100); } else if (seed 0) { for (c=0; c in the code you
    can change the words in the fifth line which you want to say and you can also control the speed of
    rolling words by the code above CODE timerTwo=window.setTimeout("scroll(100)",7); } } }
    timerONE=window....
  12. Music On Site
    Site Music (44)
    Ne one know the tag for background music.......
  13. Set site as homepage
    (7)
    CODE Click here to set this as your home page Under "PUT YOUR URL HERE" you insert
    something like trap17.com or something....

    1. Looking for integerate, site, talking, characters, ms, agents

Searching Video's for integerate, site, talking, characters, ms, agents




advertisement



Integerate Your Site With Talking Characters - Ms Agents