keyboard and mouse
-
Hello, I'm wondering how it's possible to create an application wide event that's fired when any keyboard or mouse key is pressed and mouse move? Please help. Thanks
Look at the KeyPress and MouseMove events in the System.Windows.Forms namespace.
Deus caritas est
-
Hello, I'm wondering how it's possible to create an application wide event that's fired when any keyboard or mouse key is pressed and mouse move? Please help. Thanks
Hi There are usually two ways to handle user inputs (keyboard/mouse). If you like to hanlde those events in a form you can turn its keypreview property to true and override its OnKeyDown,OnKeyUp,OnMouseDown and etc. metohds to do what you want to do (or you can add a handler using event handlers) But if you like to handle those events in an application rather than a form you can handle messages that are being send to your application by windows. Regards
-
Hello, I'm wondering how it's possible to create an application wide event that's fired when any keyboard or mouse key is pressed and mouse move? Please help. Thanks
If you want system-wide event notification then you'll have to have a Windows hook me thinks. There is an article on System-wide keyboard hooks here on CP, can't remember what it's called but search for "system wide hotkey" and you should find it.
As of how to accomplish this, have you ever tried Google?