惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
L
LangChain Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
V
V2EX

博客园 - .net

软件项目获取用户需求的沟通技巧(摘自IT168技术频道) 软件项目进度控制要处理好四个问题(摘自IT168技术频道) 软件外包项目实施过程中的关键因素(摘自IT168技术频道) Struts学习心得之Struts流程篇(3) -示例 续 转载 Struts学习心得之Struts流程篇(3) -示例 转载 Struts学习心得之Struts流程篇(2) 转载 Struts学习心得之Struts流程篇(1)转载 初学Java Applet程序设计基础 将一个数据库添加到服务器中 datagrid中使用dropdownlist编辑模版时遇到问题 开发中的临时内容 开发个人财务管理系统(一)建数据库 SQL查询语句使用方法参考二 SQL查询语句使用方法参考一 用RichTextBox控件来做一个文本编辑器 .NET中如何获得IP地址和主机名 response.bufferoutput cookie的使用 测试cookie关键字是否存在
微软的一项Agent技术(动画小精灵)
.net · 2005-04-04 · via 博客园 - .net

  Agent 技术,通过运行该技术就可以在自己的程序中使用很有趣的精灵了。
Microsoft Agent核心组建 
Microsoft Agent的四个精灵:吉尼(Genie)、么林(Merlin)、罗比(Robby)以及皮蒂(Peedy)
//在创建程序的用户界面以前我们必须先导入Agent Control这个ActiveX控件,该控件在你安装好系统要求中的项后便有了。下面是导入的方法:选择菜单"工具->自定义工具箱",并选择Microsoft Agent Control 2.0组件// (vb.net中可能无需此步)
    Private agentController As AgentObjects.Agent
    Private agentCharacter As AgentObjects.IAgentCtlCharacter
    private IAgentCtlCharacterEx Character;(这就是我们要用到的精灵的对象)。

    Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       ' The Agent object is used to open a connection to the Agent server,
        ' load the character, and then associate the character with the
        ' variable referencing the IAgentCtlCharacter interface. From then
        ' on you program against the agentCharacter.
        agentController = New AgentObjects.Agent()
        With agentController
            .Connected = True
            .Characters.Load("merlin", "merlin.acs")   /导入精灵么林(Merlin)
            agentCharacter = .Characters("merlin")
        End With

        ' 使用位置属性将精灵放置在窗体的左上角.
        With agentCharacter
            .MoveTo(CShort(Me.Location.X + 420), CShort(Me.Location.Y + 130))
            .Show()
            .Play("Announce")   // Announce 是精灵的一种行为“吹喇叭”
            .Speak("Hello, my name is Merlin. " & _
                "Welcome to the Office Automation Demo!")
            .Play("GestureRight")   // GestureRight是精灵的一种行为“请”
            .Play("wave")   // GestureRight是精灵的一种行为“招手”
           'You can make Merlin's speech sound more natural by inserting speech
            ' output tags like Pau (Pause), Chr (Character of the Voice),
            ' Emp (Emphasis) or Spd (Speed). Surround each name-value pair with a
            ' backslash character. 
            .Speak("Make me say something,\pau=300\or\pau=500\...")
            .MoveTo(CShort(Me.Location.X + 340), CShort(Me.Location.Y + 250))
            .Play("GestureRight")
            .Speak("...try out some of my animations.")
        End With

   End Sub