Exemple #1
0
        private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            gkh.KeyboardPressed -= gkh_KeyPress;
            FrmOpenFile formOpenFile = new FrmOpenFile();

            formOpenFile.ShowDialog();
            gkh.KeyboardPressed += gkh_KeyPress;
        }
Exemple #2
0
        void gkh_KeyPress(object sender, GlobalKeyboardHookEventArgs e)
        {
            if (e.KeyboardData.VirtualCode != (GlobalKeyboardHook.VkF7))
            {
                return;
            }


            gkh.KeyboardPressed -= gkh_KeyPress;
            if (e.KeyboardState == GlobalKeyboardHook.KeyboardState.KeyDown)
            {
                FrmOpenFile formOpenFile = new FrmOpenFile();
                formOpenFile.ShowDialog();

                e.Handled = false;
            }

            gkh.KeyboardPressed += gkh_KeyPress;
        }