These actions are called animations and must have been taught to the characters. Most of the time, you will use the Play method to tell the character what to do. Now that Merlin is on the screen, you want him to do something. Characters.Load("Homer", "c:\M圜hars\Homer Simpson.acs") You can also provide a path as the second parameter like this: acs files into the “msagent\chars” folder located into your Windows directory. You need to use this code to create an instance of the Merlin character, to show it and size it:īy default, the Load method is looking for the. Private mobjCharacter As AgentObjects.IAgentCtlCharacterĪdd a button to your form. Private mobjController As AgentObjects.Agent You first need to declare 2 variables at the class level of your form (just under the “Windows Form Designer generated code”) to hold pointers to our character. You must refer to each character’s documentation (when you find one) to see what’s available.Įnough talking! What you want is to see it in action. Additional behaviours may exist for each character, most of them in the form of animations (more on that later). In the list of COM objects, find the one named “Microsoft Agent Control 2.0”, click the Select Button and finally click the OK button.Īll the characters must implement a specific set of methods like Play, Speak, Show, Hide, and a couple more. Open the Add References item of the Project menu and select the COM tab from the opened dialog. Now, we need to add a reference to the MS Agent component. You still have to use the COM version.Ĭreate a new VB.Net Windows Forms application. While I think of it, MS Agent documentation is available in the MSDN library at the MSDN Microsoft Agent Start Page. A good place to start downloading more characters (more than 75) is the Character Gallery page. You can also find additional characters at some specific spot on the web. To quickly get the state of your installation, go to the Microsoft Agent 2.0 Setup page and look at the “Microsoft Agent Detector” box at the top of the page. From this page, you can download some characters (Merlin, Genie, Robby, Peedy) if you don’t already have them. To install this library visit the Microsoft Agent download page. You will also need some characters (found in. In this column, I will show you how to integrate MS Agent characters into your own application.Ĭhances are that most MS Agent requirements are already installed on your computer because parts of them are installed by Windows itself and Office. But what about your users? Many of them just want to see some distraction on their screen! What is the first thing you do when you open an Office application for the first time on a freshly installed PC? I would bet that you say goodbye to your dear friend ClipIt! Am I right?Ī great percentage of technical users like you and me usually dislike wizards like this one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |