Reputation: 15
My friend and I are making an app called K.S.I.L.T (Key Stroke Invisible Launcher Tool) that allows you to open up apps and basically executable files in general by using key shortcuts.
We want to make it hidden to the user but if they pressed say "Alt + numpad8" it would open up the selected app. However
this.Hide(); +
this.ShowinTaskbar = false;
do not work because they disable key/keycode input. Note: we are using
Process.Start(filepath*);
to open the files inside of an if statement taking the keycodes.
Upvotes: 1
Views: 99
Reputation: 5771
What you have been trying so far in terms of capturing KeyCode will only work when your application is in focus and is generally used on the screen in focus. To achieve a Key Logging functionality, you will have to get lower in the API, to capture keyboard strokes a.k.a. Win32 API
Most functions regarding Keyboard capture can be found in user32.dll. These low level functions will allow you to intercept keys irrespective of the application in focus.
This article details the basics of Low Level Keyboard Hooks http://blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspx
Upvotes: 3