i am trying to cpature the mouse button clicks from inside a dll. I am first
setting a hook to an application. Then i will monitor all the mouse
movements. Whenever the user clicks the right or left buttons then i need to
do some process.
The problem is i was able to set the hook & generate a event for all mouse
movements. But when i check whether the user has clicked either buttons
using VK_RBUTTON & VK_LBUTTON, the condition always fails.
Anybody has got any clues.
regards,
Sudhar
Have a look in the helpfile on the next messages and scan for this
in the hooked function (wParam defines which message).
WM_MOUSEMOVE
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_LBUTTONDBLCLK
WM_RBUTTONDOWN
WM_RBUTTONUP
WM_RBUTTONDBLCLK
WM_MBUTTONDOWN
WM_MBUTTONUP
WM_MBUTTONDBLCLK
HTH
- Pieter