i know how to mouve the mouse with vb but how do you click the mouse in vb please if you can email me at [email protected]
Printable View
i know how to mouve the mouse with vb but how do you click the mouse in vb please if you can email me at [email protected]
try the mouse down procedure.
MouseDown will detect when the mouse is down. Placing your code in the click event will trigger when the mouse is clicked.
Did I read the question wrong? It sounded like he accually wanted to fire off a mouse event, not react to one.
yes i accually want to fire off a mouse event, not react to one
Hope that's what you meant.Code:Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4
Call mouse_event(MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, 0&, 0&)