private void macroCommandList_MacroChanged(object sender, EventArgs e) { if (recorder != null) { ((IDisposable)recorder).Dispose(); recorder = null; } if (macroCommandList.Macro != null) { recorder = new MacroRecorder(macroCommandList.Macro); recordButton.Enabled = true; recordButton.Text = "Record"; resetButton.Enabled = true; startButton.Enabled = true; loopButton.Enabled = true; macroCommandList.Enabled = true; } else { macroCommandList.Enabled = false; recordButton.Enabled = false; recordButton.Text = "Record"; resetButton.Enabled = false; startButton.Enabled = false; loopButton.Enabled = false; } }
public FormSettings(MacroRecorder recorder, ConfigurationFile config, string configurationFilePath) { InitializeComponent(); Recorder = recorder; Recorder.ShortcutHandler = KeyDownGlobal; Config = config; ConfigurationFilePath = configurationFilePath; }
public override void Body() { MacroRecorder recorder = new MacroRecorder(); recorder.Load(filename); recorder.Play(); ActualResult = QAliber.RemotingModel.TestCaseResult.Passed; }
private static void RecordActions(string outputDirectory) { var recorder = new MacroRecorder(); recorder.StartRecording(); Console.Write("Press <Enter> to end recording... "); while (Console.ReadKey().Key != ConsoleKey.Enter) { } recorder.StartRecording(); }
public FormMain() { InitializeComponent(); _recorder = new MacroRecorder(lblEvents); _recorder.ShortcutHandler = KeyDownGlobal; if (!File.Exists(ConfigurationFilePath)) { new ConfigurationFile().Save(ConfigurationFilePath); } _config = ConfigurationFile.FromFile(ConfigurationFilePath); _languages = new LanguagePack(@"lang"); _languages.SelectLanguage(_config.LanguageCode); }
//Will need to complete command line recorder. This is going to require more than trivial thread setup. private static void RunRecorder(MacroRecorder macroRecorder) { }