Beispiel #1
0
        public Main()
        {
            InitializeComponent();
            //AxAgentObjects.AxAgent axAgent1 = new AxAgentObjects.AxAgent();

            try
            {
                axAgent1.Characters.Load("Merlin", "C:\\Windows\\MSAgent\\chars\\merlin.acs");
                speaker = axAgent1.Characters["Merlin"];

                speaker.MoveTo(800, 600, null);
                speaker.Show(0);
                speaker.Play("announce");

                speaker.Speak(" سلام", null);
                speaker.MoveTo(100, 100, null);

                speaker.Speak(" هستم روبی من ", null);
                agent = axAgent1;
            }
            catch (FileNotFoundException)
            {
                MessageBox.Show("invalid");
            }
        }
Beispiel #2
0
        public Main()
        {
            InitializeComponent();
            //AxAgentObjects.AxAgent axAgent1 = new AxAgentObjects.AxAgent();

            try
            {
                axAgent1.Characters.Load("Merlin", "C:\\Windows\\MSAgent\\chars\\merlin.acs");
                speaker = axAgent1.Characters["Merlin"];

                speaker.MoveTo(800, 600, null);
                speaker.Show(0);
                speaker.Play("announce");

                speaker.Speak(" سلام", null);
                speaker.MoveTo(100, 100, null);


                speaker.Speak(" هستم روبی من ", null);
                agent = axAgent1;
            }
            catch (FileNotFoundException)
            {
                MessageBox.Show("invalid");
            }
        }