Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have an MFC application (VC6). I'd like to know how can I capture the mouse behaviour (coordinates, clicks etc.) if the mouse pointer is on Firefox or Opera browser windows, if they are launched?
Posted
Updated 29-Dec-09 1:03am
v3

What are you going to do with that, not knowing the window content?

If you want to handle mouse movements on the elements of a web page you should use Javascripts in response to element events inside the HTML of tha page.

If you want to know what's going on in windows, you can set a windows hook (see SetWindowsHookEx on MSDN).

But they are completely different stories!
 
Share this answer
 
You'll need to install a global mouse hook. Here's a sample implementation with some nice theory on hooks in general: Hooks and DLLs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900