Expose keys in all applications?

  • Thread starter Thread starter Marcus Wagenaar via .NET 247
  • Start date Start date
M

Marcus Wagenaar via .NET 247

Hello people,

Situation is like this, I have a system tray application and Iwould like some functionality of the program available _all thetime_ (ie: when your working in other applications or even whenyour fullscreen in a game). Obviously this is done via keyboardshortcuts like CTRL+ALT+C etc. But how do I enable theseshortcuts while the user is not focussing on my application orwhen he isn't even able to see it at all (ie: he's in a computergame)?

Thanks in advance,

Marcus
 
Hi Marcus
you can do this by using API function that listen to keyboard and capture
keyboard key hits.

Look at this link

http://www.codeproject.com/csharp/c__and_api.asp?df=100&forumid=2449&exp=0&s
elect=490142

This link is an example of code ( with source code ) that disable ctrl +alt
+del . although this is not what you want to do but , it is the same
concept . you will see what API this code use to listen and capture these
key strokes . then you will implement your code that capture you won
strokes ( the one you want your program to listen to) once these keys were
hit you will (show) your program , may be kill other processes or what
ever you are trying to implement . hope that this was clear , I will
reopening this thread to see if you still need more explanation on that .

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top