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.
Dinesh Venugopalan - 13 Aug 2007 07:14 GMT
Hi,
Set hooks using SetWindowsHookEx().
Hope this helps.
Dinesh Venugopalan
> Hi,
>
[quoted text clipped - 5 lines]
>
> Thanks in advance for your help.
wbyeats - 16 Aug 2007 00:23 GMT
Thanks, Dinesh.
That put me on the right track. Now I'm just trying to figure out
DLLs.
David Wilkinson - 16 Aug 2007 01:11 GMT
> Thanks, Dinesh.
>
> That put me on the right track. Now I'm just trying to figure out
> DLLs.
wbyeats:
You might find this article useful.
<http://www.codeproject.com/dll/hooks.asp>
There are some other hook articles on Codeproject also.

Signature
David Wilkinson
Visual C++ MVP