is it possible to have system level hotkeys in C#
Hi,
I have a requirement that when I press ctrl + alt +s then an certain event must be triggered . my Application will not have an user interface just an console running on an infinite while loop or an service. I tried registering the hotkys using the hotkey function of windows API using DLL Import and then inheriting the class from system.windows.forms.IMessageFilter to filter the incoming messages but it does not work. the hotkey is registered and but the appropriate key combinations are not caught , The Handle I am passing to the HotKey function is the handle of the dummy window created using the createParams Class. i have also tried overriding wndproc.But this all works only when there is an user interface running could anyone plz help me
|