Capturing keystrokes

I want to capture keystrokes when my program isn't in focus, but I'm not very good at message handling (witch I figure must be used). Can anyone help me?

Who is Participating?
rwilson032697Connect With a Mentor Commented:
This should do the job nicely for you:


The answer lies in the SetWindowsHookEx API call - see the Win32 API reference.  If you want code examples I think you should up the points since it will require ALOT of work...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.