Con SetCursorPos no podes simular los clicks del mouse. Para eso necesitas la API mouse_event. Un ejemplo seria asi:
Si queres simular otros botones del mouse busca otras constantes que empiecen con MOUSEEVENTF...
Saludos.-
Código [Seleccionar]
Private Declare Function SetCursorPos Lib "user32.dll" (ByVal x As Long, ByVal y As Long) As Long
Private Declare Sub mouse_event Lib "user32.dll" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Const MOUSEEVENTF_LEFTDOWN As Long = &H2
Private Const MOUSEEVENTF_LEFTUP As Long = &H4
Private Sub Command1_Click()
SetCursorPos 25, 750
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
End Sub
Si queres simular otros botones del mouse busca otras constantes que empiecen con MOUSEEVENTF...
Saludos.-