Hooking a tray application into the global windows keyboard queue

G

Greg Merideth

Is there a way via c# to hook a system tray application into the windows
keyboard que globally so that when the application is running and you
press, say, control-alt-shift-f11 the system tray app could respond to
that keypress (much in the way my pgp app encrypts on ctrl-alt-e) even
though its minimized and your in a different app?

I've got an app thats a system tray and while its easy to access the
data I'm just trying to add an extra layer of simplicity by getting into
the windows keyboard queue and responding to a selective keypress.

I've tried going through the msdn site and I can't find much in the way
to show how a c# app would get into the windows keyboard queue so I
figured I have to somehow add my app to the queue but I can't find how
that would work either.
 
B

Bram

Hi,

Take a look at the SetWindowsHookEx function (Win32).
Don't know of any *C# only* solution.

Greetings,

Bram.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top