在你的编辑工具箱里, 点击右键然后选择"Choose Items..."
在新开的窗口里, 去到"COM" Tab.
然后找到"Microsoft Agent Control",然后选取这个。
点击确定, 回到你的窗口编辑, 然后把"Microsoft Agent Control"拖到你的窗口里。
在你的References 你就可以看到AgentObjects 和 AxAgenObjects两个引用。
下面是调用的代码:
axAgent1.Characters.Load("Merlin", "Merlin.acs");
AgentObjects.IAgentCtlCharacterEx myAgent = axAgent1.Characters["Merlin"];
myAgent.Show(true);
myAgent.Speak("Hello Genoo linux!", null);
myAgent.Play("Congratulate");
axAgent1.Characters.Load("Merlin", "Merlin.acs");
AgentObjects.IAgentCtlCharacterEx myAgent = axAgent1.Characters["Merlin"];
myAgent.Show(true);
myAgent.Speak("Hello Genoo linux!", null);
myAgent.Play("Congratulate");
在新开的窗口里, 去到"COM" Tab.
然后找到"Microsoft Agent Control",然后选取这个。
点击确定, 回到你的窗口编辑, 然后把"Microsoft Agent Control"拖到你的窗口里。
在你的References 你就可以看到AgentObjects 和 AxAgenObjects两个引用。
下面是调用的代码:
axAgent1.Characters.Load("Merlin", "Merlin.acs");
AgentObjects.IAgentCtlCharacterEx myAgent = axAgent1.Characters["Merlin"];
myAgent.Show(true);
myAgent.Speak("Hello Genoo linux!", null);
myAgent.Play("Congratulate");
axAgent1.Characters.Load("Merlin", "Merlin.acs");
AgentObjects.IAgentCtlCharacterEx myAgent = axAgent1.Characters["Merlin"];
myAgent.Show(true);
myAgent.Speak("Hello Genoo linux!", null);
myAgent.Play("Congratulate");