Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

To capture mouse button clicks

38 views
Skip to first unread message

Sudharsan

unread,
May 16, 2000, 3:00:00 AM5/16/00
to
Hi all,

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

Pieter Zijlstra

unread,
May 17, 2000, 3:00:00 AM5/17/00
to

Sudharsan wrote...

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


0 new messages