Skip to main content

A Small HTML file using Microsoft Agent

<Html>
<Head>
 <Title>X-Mas Greetings ...Designed and Developed by M. Vadivel </Title>
</Head>
<Body bgcolor=black>
<!--
Sets or retrieves the URL of the component. If the value for version is set as -1 the component is downloaded from the server if the release date is later than the installation date on the client computer. If the compnent is installed on the client computer and the release date is the same or earlier than the installation date only an HTTP header transaction occurs.

The below line would take care of installing the agent control and the TTS engine if it is not already present in the end
user PC
-->

<OBJECT ID="AgentControl" 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=VBScript>
Dim Genie
Sub window_OnLoad
  AgentControl.Connected = True ' needed for IE3
  AgentControl.Characters.Load "Genie", "http://agent.microsoft.com/agent2/chars/genie/genie.acf"
  Set Genie = AgentControl.Characters("Genie")
  Genie.LanguageID = &H0409 ' needed under some conditions (English)
  Genie.Get "state", "Showing, Speaking"
  Genie.Get "animation", "DoMagic2, DoMagic2Return"
  Genie.Show
  Genie.Get "state", "Hiding"

  Genie.Play "DoMagic2"
  Genie.Speak "Dear friends Merry Chrismas."
End Sub
</Script>

</Body>
</Html>

Till the above line save it as a HTML file. On firing that HTML you could see the Genie in action :)

There are lots of animation effects which comes along with Genie (BTW there are lots of other character as well like Merlin, Robbie, Peddy etc., You know what? we can create our own Character as well). Some of the other animations which I used while preparing a diwali greetings are as follows:

1. "Announce, AnnounceReturn"
2. "Explain, ExplainReturn"
3. "Pleased, PleasedReturn"
4. "Suggest, SuggestReturn"
5. "Think, ThinkReturn"
6. "Process, ProcessReturn"
7. "DoMagic1, DoMagic1Return"
8. "Wave, WaveReturn"

The complete list of possible animations of Genie is here. For creating your own character check this.

But when I was developing the application I wasn't aware about these links, so I downloaded the Character (Genie) and referenced it in a Visual Basic application and from it I got all the animation effects :) If anyone needs that diwali greetings which I developed using this Agent control do get in touch with me.

Comments

Popular posts from this blog

My Wedding Anniversary :)

Six years back on the same day I married Sai Lakshmi (12-July-2000). I know Sai for almost 13 years now :) I fell in love with her during my 12th standard. I know @ 17 yrs any person wouldn't be matured enough to make a big decision like this. But thank God my choice was perfect :) Even now, very often we used to think about the past and laugh at our behaviors/actions then. My love story would be really interesting (at least for me and Sai :)) and I am sure none of you guys would be interested in reading about it so lemme not get into it in-depth. But one thing which I want to share is "Without Sai, I wouldn't have entered into the IT field at all". She was instrumental in convincing me to study my Master's degree in Computer Application. That's the move that changed my career. Till my schooling, my dream was to either become a "big" sportsman (Cricket and Badminton were my favorites at that time.) or an Aeronautics engineer. Unfortunately, my l...

Script table as - ALTER TO is greyed out - SQL SERVER

One of my office colleague recently asked me why we are not able to generate ALTER Table script from SSMS. If we right click on the table and choose "Script Table As"  ALTER To option would be disabled or Greyed out. Is it a bug? No it isn't a bug. ALTER To is there to be used for generating modified script of Stored Procedure, Functions, Views, Triggers etc., and NOT for Tables. For generating ALTER Table script there is an work around. Right click on the table, choose "Modify" and enter into the design mode. Make what ever changes you want to make and WITHOUT saving it right click anywhere on the top half of the window (above Column properties) and choose "Generate Change Script". Please be advised that SQL Server would drop actually create a new table with modifications, move the data from the old table into it and then drop the old table. Sounds simple but assume you have a very large table for which you want to do this! Then it woul...

What should one look @ while buying a land in chennai?

Offlate people have started thinking about investing their money in lands. I too think that to be a wise decision only! As most of us know buying a land in chennai (for that matter any where in the world) isn't an easy affair. I was just wondering what all one needs to look at before deciding to purchase a land. I thought I would put down what ever I know about this subject here. [Guys pls free to correct me if I my understanding is wrong somewhere. That way, it would help me understand as well as others who might read this in future]. Here we go ... 1. One should not buy farm lands if they want to build a residential house sometime later there. Because to my knowledge its illegal to build residential houses on lands meant for irrigation. 2. Encumberance Certificate -- This is what is shortly refered as "EC". One needs to get an EC from local sub registrar office (i guess we need pay a small amount for this). From this we / our lawyers :) can find out whether the guy who ...