Пример #1
0
        private void recordANewMacroToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (formNewMacro newMacro = new formNewMacro())
            {
                if (newMacro.ShowDialog() != System.Windows.Forms.DialogResult.OK)
                {
                    return;
                }

                Recorder.MouseMovementCaptureDelay = newMacro.MouseMovementCaptureDelay;
                Recorder.CaptureMouseMovements     = newMacro.CaptureMouseMovements;

                using (formMacroNotify mn = new formMacroNotify(Recorder, newMacro.RecordKeyboard, newMacro.RecordMouse, newMacro.DelayBeforeRecord))
                {
                    ClearCurrent();
                    this.Hide();
                    mn.ShowDialog();
                    this.Show();
                }
            }
        }
Пример #2
0
        private void recordANewMacroToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using(formNewMacro newMacro = new formNewMacro())
            {
                if (newMacro.ShowDialog() != System.Windows.Forms.DialogResult.OK)
                    return;

                Recorder.MouseMovementCaptureDelay = newMacro.MouseMovementCaptureDelay;
                Recorder.CaptureMouseMovements = newMacro.CaptureMouseMovements;

                using(formMacroNotify mn = new formMacroNotify(Recorder, newMacro.RecordKeyboard, newMacro.RecordMouse, newMacro.DelayBeforeRecord))
                {
                    ClearCurrent();
                    this.Hide();
                    mn.ShowDialog();
                    this.Show();
                }
            }
        }