Ejemplo n.º 1
0
 private void frmColorPickup_Load(object sender, EventArgs e)
 {
     _hdc = Win32Helper.GetDC(_hWnd);
     timerSelectColor.Start();
     _keyHook.OnKeyDown += _keyHook_OnKeyDown;;
     _keyHook.InstallHook();
 }
Ejemplo n.º 2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
#if !DEBUG
            if (ProcessManager.IsGameProcessRunning())
            {
                string            message = "World of Warships를 종료 후 다시 실행해 주세요.";
                string            caption = "WfGaming.NET";
                MessageBoxButtons buttons = MessageBoxButtons.OK;
                DialogResult      _       = MessageBox.Show(message, caption, buttons);
                this.Close();
            }
#endif

            game = new Game();
            Console.WriteLine($"Build: {game.Build}, Version: {game.Version}");

            BuildLabel.Text   = game.Build;
            VersionLabel.Text = game.Version;

            dataSource = new DataSource(game);
            keyHook    = new KeyHook();
            keyHook.InstallHook();

            keyHookThread = new Thread(new ThreadStart(keyHook.DigestQueue));
            keyHookThread.IsBackground = true;
            keyHookThread.Start();
        }
Ejemplo n.º 3
0
        private void button5_Click(object sender, EventArgs e)
        {
            kh = KeyHook.GetHook();
            kh.InstallHook(keyf1);
            //ProcessKeyHandle pkh = new ProcessKeyHandle(keyf1);
            //kh.InstallHook(pkh);


            khd1 = KeyHook.GetHook();
            khd1.InstallHook(keyD1);
            //ProcessKeyHandle pkhd1 = new ProcessKeyHandle(keyD1);
            //khd1.InstallHook(pkhd1);
        }