add those declarations:
Private Const HC_ACTION As Integer = 0
Private Const WH_MOUSE_LL As Integer = 14
Private Const WM_LBUTTONDOWN As Integer = &H201
Private Const WM_MOUSEWHEEL As Integer = &H20A
and in MouseHookProc():
If (nCode = HC_ACTION) Then
If wParam = WM_LBUTTONDOWN Then
''do something on left mouse click
End If
Main Topics
Browse All Topics





by: sedgwickPosted on 2009-11-03 at 00:11:22ID: 25726857
use mouse hook, example attached:
Select allOpen in new window