private void playMacro() { lblStatus.Text = "Status: Playing"; // Load and play macro. _player.LoadMacro(_recorder.CurrentMacro); _player.PlayMacroAsync(); }
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)"; }
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."; }
private static void PlayRecord(string recordFilePath) { var player = new MacroPlayer(); var loadedMacro = new Macro(); loadedMacro.Load(recordFilePath); player.LoadMacro(loadedMacro); player.PlayMacro(); }
private void playControlButton_Click(object sender, EventArgs e) { // Load and play macro. _player.LoadMacro(_recorder.CurrentMacro); _player.PlayMacroAsync(); }