Keyboard Spy
-
Hello. I have to make a program, that is listening to keyboard, and if some combination of keys are pressed, it blocks other key. EXAMLE - if i press "Lshift+Rshift" the F1 key is blocked. How can i do it? How can i get the combination of 2 keys?
One nation - underground
-
Hello. I have to make a program, that is listening to keyboard, and if some combination of keys are pressed, it blocks other key. EXAMLE - if i press "Lshift+Rshift" the F1 key is blocked. How can i do it? How can i get the combination of 2 keys?
One nation - underground
-
Hello. I have to make a program, that is listening to keyboard, and if some combination of keys are pressed, it blocks other key. EXAMLE - if i press "Lshift+Rshift" the F1 key is blocked. How can i do it? How can i get the combination of 2 keys?
One nation - underground
Hello, If you need it for your WindowsApplication, you could use the KeyDown event of your main form (KeyPreview has to be true).
this.KeyPreview = true;
this.KeyDown += new KeyEventHandler(CheckKeys);private void CheckKeys(object sender, KeyEventArgs e)
{
if ((e.KeyCode == Keys.F1) && (e.KeyCode == Keys.RShiftKey) && (e.KeyCode == Keys.LShiftKey))
e.Handled = true;
}If you want to log all keybord entries of your a computer, I think no one will help you here! All the best, Martin