コード例 #1
0
        private void hkHandler(object sender, EventArgs e)
        {
            var win = new SystemWindow(GetForegroundWindow());

            if (win.IsValid())
            {
                Helper = new AccessHelper(win.HWnd, this);
                Overlay.Show();
                MainWindow.Show();
                MainWindow.Activate();
                MainWindow.Focus();
                MainWindow.txtIn.Focus();
                hk.Enabled = false;
            }
        }