Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I got a great response from my kids with a quick VB script to manipulate a Microsoft Agent character. For those that aren't familiar with MS Agent, it's a series of animated onscreen characters that can be manipulated via a COM interface. You can download the code and characters at the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=E11BF712-7862-45BA-826D-44AE3A11836F&amp;displaylang=en" rel="nofollow noreferrer">Microsoft Agent</a> download page.</p> <p>The folllowing few lines will make the Merlin character appear on screen, fly around, knock on the screen to get your attention, and say hello.</p> <pre><code>agentName = "Merlin" agentPath = "c:\windows\msagent\chars\" &amp; agentName &amp; ".acs" Set agent = CreateObject("Agent.Control.2") agent.Connected = TRUE agent.Characters.Load agentName, agentPath Set character = agent.Characters.Character(agentName) character.Show character.MoveTo 500, 400 character.Play "GetAttention" character.Speak "Hello, how are you?" Wscript.Sleep 15000 character.Stop character.Play "Hide" </code></pre> <p>There are a great many other commands you can use. Check <a href="http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx" rel="nofollow noreferrer"><a href="http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx" rel="nofollow noreferrer">http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx</a></a> for more information.</p> <p><strong>EDIT 2011-09-02</strong> I recently discovered that Microsoft Agent is not natively installed on Windows 7. However it is offered as a separate download <a href="http://www.microsoft.com/products/msagent/main.aspx" rel="nofollow noreferrer">here</a>. I have not tested this so cannot verify whether it operates.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload