Capturing Global Mouse and Keyboard Events

  • Thread starter Thread starter wbyeats
  • Start date Start date
W

wbyeats

Hi,

I would like to enable my VC++ application to capture general mouse
and keyboard events (click, double-click, key press) that occur
outside of my application's frame (eg. clicking inside the frame of
another application). I'm quite sure this is possible, but I don't
know how to do it. Anyone have experience with this?

Thanks in advance for your help.
 
Hi,

Set hooks using SetWindowsHookEx().

Hope this helps.

Dinesh Venugopalan
 
Thanks, Dinesh.

That put me on the right track. Now I'm just trying to figure out
DLLs.
 

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