Esempio n. 1
0
        private void InterceptKeyboard_KeyDownEvent(object sender, InterceptKeyboard.OriginalKeyEventArg e)
        {
            var key = KeyMapConverter.KeyCodeToKey(e.KeyCode);

            Debug.WriteLine("Keydown KeyCode {0}", key);

            if (e.equalsModifiers(new int[] { (int)OriginalKey.LeftWindows }))
            {
                Debug.WriteLine("With LeftWindows");
            }

            /*
             * if ( key == OriginalKey.LeftWindows)
             * {
             *  interceptKeyboard.callNextHook = false;
             * } else
             * {
             *  interceptKeyboard.callNextHook = true;
             * }
             */
        }
Esempio n. 2
0
 private void InterceptKeyboard_KeyUpEvent(object sender, InterceptKeyboard.OriginalKeyEventArg e)
 {
     Debug.WriteLine("Keyup KeyCode {0}", KeyMapConverter.KeyCodeToKey(e.KeyCode));
 }