Esempio n. 1
0
        private void SetupForm_Load(object sender, EventArgs e)
        {
            MessageBox.Show("Press \"SUBTRACT\" to start.");
            KeyHook.AddHookToCurrentProcess();
            KeyHook.onKeyHooked += NextConfig;
            acceptHook           = true;

            this.Hide();
        }
Esempio n. 2
0
        private void StartButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            WindowTray.Visible = true;
            var rd = new ReadingForm();

            rd.TargetImage = new Bitmap(TargetImageBox.Image, int.Parse(WidthBox.Text), int.Parse(HeightBox.Text));
            rd.NoWhite     = IgnoreWhiteBox.Checked;
            rd.JumpV       = int.Parse(VJumpBox.Text);
            rd.JumpH       = int.Parse(HJumpBox.Text);
            rd.ColorDiff   = int.Parse(ColorDiffBox.Text);

            if (rd.ShowDialog() == DialogResult.OK)
            {
                imageData = rd.ImageData;
                WindowTray.ShowBalloonTip(5000, "Readed !", "SUBTRACT: Start\nMULTIPLY: Pause\nDIVIDE: Stop", ToolTipIcon.Info);
                KeyHook.AddHookToCurrentProcess();
                KeyHook.onKeyHooked += ReceiveKeyHook;
            }
            else
            {
                this.Show();
            }
        }