Пример #1
0
 private void playMacro()
 {
     lblStatus.Text = "Status: Playing";
     // Load and play macro.
     _player.LoadMacro(_recorder.CurrentMacro);
     _player.PlayMacroAsync();
 }
Пример #2
0
 private void PlayBtn_Click(object sender, EventArgs e)
 {
     _player.Repetitions = (int)RepetitionsN.Value;
     _player.LoadMacro(_recorder.CurrentMacro);
     _player.PlayMacroAsync();
     StatusLabel.Text = "Status: Playing recording (Repeat: " + _player.Repetitions + " times)";
 }
Пример #3
0
 private void btnPlayMacro_Click(object sender, EventArgs e)
 {
     // load and play macro
     lblStatus.Text = "Playing Macro...";
     _player.LoadMacro(_recorder.CurrentMacro);
     _player.PlayMacroAsync();
     lblStatus.Text = "Macro finished.";
 }
Пример #4
0
        private static void PlayRecord(string recordFilePath)
        {
            var player      = new MacroPlayer();
            var loadedMacro = new Macro();

            loadedMacro.Load(recordFilePath);
            player.LoadMacro(loadedMacro);
            player.PlayMacro();
        }
Пример #5
0
 private void playControlButton_Click(object sender, EventArgs e)
 {
     // Load and play macro.
     _player.LoadMacro(_recorder.CurrentMacro);
     _player.PlayMacroAsync();
 }