Example #1
0
        private void unregisterGlobalHotkey()
        {
            ghk_UP.Unregister();
            ghk_DOWN.Unregister();

            navKeyRegistered = false;
        }
        private void unregisterNavigationKey()
        {
            ghk_UP.Unregister();
            ghk_DOWN.Unregister();

            navKeyRegistered = false;
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Keys key = Keys.A;

            if ((Keys)System.Enum.Parse(typeof(Keys), textBox1.Text) != key)
            {
                try{ ghk.Unregister(); }
                catch { }
            }
            key = (Keys)System.Enum.Parse(typeof(Keys), textBox1.Text);

            ghk = new Hotkeys.GlobalHotkey(Constants.NOMOD, key, this);
            if (ghk.Register())
            {
                MessageBox.Show("Registered hotkey to: " + key.ToString());
                label2.Text = key.ToString();
            }
        }
Example #4
0
        private void unregisterGlobalHotkey()
        {
            ghk_F1.Unregister();
            //ghk_F2.Unregister();
            ghk_F8.Unregister();
            ghk_F9.Unregister();
            ghk_F11.Unregister();

            ghk_CTRL_DEL.Unregister();
            ghk_CTRL_ENTER.Unregister();
        }
Example #5
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!qhk.Unregister())
     {
         MessageBox.Show("Hotkey failed to unregister!");
     }
     if (!shk.Unregister())
     {
         MessageBox.Show("Hotkey failed to unregister!");
     }
 }
        private void unregisterGlobalHotkey()
        {
            if (!isNavKeyRegistered)
            {
                return;
            }

            ghk_UP.Unregister();
            ghk_DOWN.Unregister();

            isNavKeyRegistered = false;
        }
 private void unregisterGlobalHotkey()
 {
     ghk_UP.Unregister();
     ghk_DOWN.Unregister();
 }
Example #8
0
 private void unregisterGlobalHotkey()
 {
     //ghk_F1.Unregister();
     ghk_F11.Unregister();
     ghk_DEL.Unregister();
 }
Example #9
0
 private void unregisterGlobalHotkey()
 {
     ghk_F7.Unregister();
     ghk_F9.Unregister();
     ghk_F10.Unregister();
 }
        private void unregisterDelKey()
        {
            ghk_DEL.Unregister();

            delKeyRegistered = false;
        }