예제 #1
0
        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;
            }
        }
예제 #2
0
 public FormSettings(MacroRecorder recorder, ConfigurationFile config, string configurationFilePath)
 {
     InitializeComponent();
     Recorder = recorder;
     Recorder.ShortcutHandler = KeyDownGlobal;
     Config = config;
     ConfigurationFilePath = configurationFilePath;
 }
예제 #3
0
        public override void Body()
        {
            MacroRecorder recorder = new MacroRecorder();

            recorder.Load(filename);
            recorder.Play();
            ActualResult = QAliber.RemotingModel.TestCaseResult.Passed;
        }
예제 #4
0
파일: Program.cs 프로젝트: scch1002/silence
        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();
        }
예제 #5
0
        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);
        }
예제 #6
0
파일: Program.cs 프로젝트: scch1002/silence
 //Will need to complete command line recorder. This is going to require more than trivial thread setup.
 private static void RunRecorder(MacroRecorder macroRecorder)
 {
 }