Mouse emulation [Archive] – VBForums
HackDec 11th, 2001, 06:23 AMTake a look at this link.http://www.allapi.net/apilist/apifunction.php?apifunction=mouse_event
Incendently, I can find nothing on MouseEventEx, so play around with MouseEvent and see what that does for you.
AlbafaNDec 11th, 2001, 01:14 PMyou’ll wanna use the SendMessage API with the WM_LBUTTONDOWN and WM_LBUTTONUP constants….—-
Public Declare Function SendMessage Lib “user32″ Alias “SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As LongPublic Const WM_LBUTTONDOWN = &H201
Public Const WM_LBUTTONUP = &H202
—-SendMessage hWnd&, WM_LBUTTONDOWN, 0&, 0&
SendMessage hWnd&, WM_LBUTTONUP, 0&, 0&…. but before you do this, you need to get the handle (hWnd) of the window the mouse is over (the button, or whatever). If you dont know how to do this, lemme know…