Capturing Global Mouse and Keyboard Events

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.
 
D

Dinesh Venugopalan

Hi,

Set hooks using SetWindowsHookEx().

Hope this helps.

Dinesh Venugopalan
 
W

wbyeats

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

Top