private void btnTest_Click(object sender, System.EventArgs e)
        {
            // Display the speaker.
            CurrentSpeaker.Show(0);

            // Move to the center of the display.
            CurrentSpeaker.MoveTo(
                Convert.ToInt16(SystemInformation.WorkingArea.Width / 2),
                Convert.ToInt16(SystemInformation.WorkingArea.Height / 2),
                100);

            // Greet the user.
            CurrentSpeaker.Play("Announce");
            CurrentSpeaker.Play("RestPose");
            CurrentSpeaker.Speak("\\map=\"What you hear is not what you " +
                                 "see!\"=\"Hello World\"\\", "");
            CurrentSpeaker.Play("Greet");

            // Tell the character to pull rabbit from hat.
            CurrentSpeaker.Play("RestPose");
            CurrentSpeaker.Speak("Want to see me pull a rabbit from my hat?",
                                 "");
            CurrentSpeaker.Play("DoMagic1");
            CurrentSpeaker.Play("DoMagic2");

            // The the character to express surprise that the user doesn't
            // want to see the magic trick.
            CurrentSpeaker.Play("Surprised");
            CurrentSpeaker.Play("Confused");
            CurrentSpeaker.Play("RestPose");
            CurrentSpeaker.Speak("That trick never works!", "");
            CurrentSpeaker.Play("Sad");

            // Goodbye.
            CurrentSpeaker.Play("RestPose");
            CurrentSpeaker.Speak("Goodbye", "");
            CurrentSpeaker.Play("Wave");

            // Hide the character.
            CurrentSpeaker.Hide(0);
        }
Example #2
0
 private void textBox1_MouseHover(object sender, EventArgs e)
 {
     avatar.StopAll();
     avatar.MoveTo(20, 95);
     avatar.Speak("Aqui você coloca o nome do cliente ou da empresa que está comprando os produtos", null);
 }