Let your program like office, a small assistant.

xiaoxiao2021-03-06  37

First reference Microsoft Agent, then place where you need to display the wizard

Private void showagent (String Speak)

{

AgentObjects.iagentctlcharacterex myagent;

/ / AgentObjects.AgentClass myagentclass =, declaring AgentObjects.

New agentObjects.AgentClass ();

// Declared an example of a elf MyagentClass.Characters.Load ("Yjy", "YJY.ACS");

// ACS file is an animation wizard file, you can find some online, or in the office directory, or WinXP, you can search for .acs file, you can get some. Myagent = myagentclass.characters.Character "yjy");

Myagent.show (myagent.srmodeid);

// Display the Elf MYAgent.moveto (800, 600, 1000);

// Move to a location, move speed myagent.play ("Wave");

// Action name, this can be found online to find a list of Agent action list, a lot of action, specifically not listed! Myagent.Speak (Speak, "Temp");

// Let the small elf speak}

转载请注明原文地址:https://www.9cbs.com/read-70946.html

New Post(0)