system wide hotkey

  • Thread starter Thread starter ian
  • Start date Start date
I

ian

Hi,

Is it possible to define and trap a system wide hotkey combo? I've an
app that sits in the systray doing various things, I've got some ideas
which would require it to recieve keyboard input regardless of the
active applcation. It's a bit dull, but I've got some ideas concerning
an extended clipboard. I'm thinking either windows+char (ie windows+L in
xp will lock the computer) or even CTRL+char? Assuming that's possible,
what happens if the active application uses that combination (probably
more of an issue with CTRL+char)?

Kind regards.
 
ian said:
Is it possible to define and trap a system wide hotkey combo? I've an
app that sits in the systray doing various things, I've got some ideas
which would require it to recieve keyboard input regardless of the
active applcation. It's a bit dull, but I've got some ideas concerning
an extended clipboard. I'm thinking either windows+char (ie windows+L in
xp will lock the computer) or even CTRL+char? Assuming that's possible,
what happens if the active application uses that combination (probably
more of an issue with CTRL+char)?

You can use Windows API functions for this (look for RegisterHotKey and
UnregisterHotKey) or you can use a ready-made component for it. There
are several samples at Code Project (www.codeproject.com).



Oliver Sturm
 

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

Back
Top