Need an API function to repeat mouse click event.
Hello everybody
I'm searching for a solution to repeat mouse click event. It sounds stupid but I really nead it. My purpose is when user click mouse, it will switch to dblclick event automaticlly.
I think SendMessage API function can do it, but I don't know how to use it in detail. Anyone can help me?
Thanks for any suggestions.
Trung
Re: Need an API function to repeat mouse click event.
you can also use PostMessage, since you say SendMessage, then we stick with SendMessage
declare this :
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const WM_MBUTTONDBLCLK = &H209
in the click event, put this
SendMessage(me.hWnd,WM_MBUTTONDBLCLK,0,0)
hope this help.
cksiow
http://vblib.virtualave.net - share our codes