API call to do a Mouse click in VB6
Posted on 2000-03-03
I can move the cursor to a specified position in VB6 using something
like this :
Declare Function SetCursorPos& Lib "user32" (ByVal X As Long, ByVal Y As Long)
And then calling this :
t& = SetCursorPos(50,100)
But I also want to make the system do a left mouse button click at
Can anyone tell me how exactly I should declare the function and call
it so the left mouse button is clicked at it's current position without
touching the mouse.
This is for a simple macro program I'm writing.