Hi,
You could also look at the following links that might give you some ideas...
http://msdn.microsoft.com/
http://www.codeproject.com
http://msdn.microsoft.com/
Cheers,
Darren
Main Topics
Browse All TopicsHi guys!
How do I listen for the F12 key even when my application is not in foucs?
just using the
protected override void OnKeyUp(KeyEventArgs e)
{
}
only works when the application is in focus.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
You could also look at the following links that might give you some ideas...
http://msdn.microsoft.com/
http://www.codeproject.com
http://msdn.microsoft.com/
Cheers,
Darren
hmm, don't know if I explained it correct
when registering hotkeys they become global using this native method
[DllImport("user32.d
[return: MarshalAs(UnmanagedType.Bo
public static extern bool RegisterHotKey(IntPtr hWnd, int id, int fsModifiers, int vk);
and this method to catch it
protected override void WndProc(ref System.Windows.Forms.Messa
{
switch (m.Msg)
{
case 0x312:
HotkeyPressed((int)m.WPara
break;
}
base.WndProc(ref m);
}
so even if the application isn't in focus it will catch it, what I like to know is, how do that without using a combination of keys like Ctrl + F12, is that possible?
Hi,
Yep, I found the RegisterHotKey in one of the articles posted above. I was just going on what you had in the original post which was only capturing the event in the application.
I'm not sure how to check without using a combination of keys like Ctrl + F12
I'll see if I can find anything else...
Let me know if you solve it...
Darren
Business Accounts
Answer for Membership
by: DarrenDPosted on 2009-10-28 at 02:58:13ID: 25681352
Hi,
in32/Lesso n05.htm
If you don't capture the F12 key in your application how will the F12 key know what to do when it is pressed?
You will have to have another application that knows when it is pressed. So you will have to have an application that handles the windows F12 and then does something with it such as activate your application
Here is a link to some Win32 functions
http://www.functionx.com/w
Hope this helps,
Darren