Capturing mouse clicks and movements
Capturing mouse clicks and movements
Any suggestion on how to capture 1) mouse clicks and 2) mouse movements when capturing a window?
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Capturing mouse clicks and movements
See the demo in Demos\SendAnReceive\RemoteDesktop\
One application uses command to send mouse events to another application.
One application uses command to send mouse events to another application.
Re: Capturing mouse clicks and movements
I looked at that demo, but it doesn't help me much. I need to capture the mouse clicks (and maybe movements) when capturing the window of ANY desktop application. I guess there are really 2 questions:
1) How do I know when another app gets a mouse click?
2) How do I "record" that into the video I am capturing?
1) How do I know when another app gets a mouse click?
2) How do I "record" that into the video I am capturing?
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Capturing mouse clicks and movements
I never tried it myself, but it looks like you need to use SetWindowsHookEx to set a hook procedure for mouse events.
For example, see https://www.thoughtco.com/how-to-hook-the-mouse-1058467
For example, see https://www.thoughtco.com/how-to-hook-the-mouse-1058467