HOLA!!!
Averigua sobre el api mouse event, abajo te dejo un ejemplo que arme usando la ApiGuide.
GRACIAS POR LEER!!!
Averigua sobre el api mouse event, abajo te dejo un ejemplo que arme usando la ApiGuide.
Código (vb) [Seleccionar]
'DECLARACION DEL API
Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
'Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ACCION , X , Y , ByVal cButtons As Long, ByVal dwExtraInfo As Long)
' ARRIBA DESCRIPCION DE LO QUE NECESITAS
' ABAJO ACCIONES
Const MOUSEEVENTF_LEFTDOWN = &H2
Const MOUSEEVENTF_LEFTUP = &H4
Const MOUSEEVENTF_MIDDLEDOWN = &H20
Const MOUSEEVENTF_MIDDLEUP = &H40
Const MOUSEEVENTF_MOVE = &H1
Const MOUSEEVENTF_ABSOLUTE = &H8000
Const MOUSEEVENTF_RIGHTDOWN = &H8
Const MOUSEEVENTF_RIGHTUP = &H10
'EJEMPLO
Private sub form_load()
'Click en X = variable "x", Y = variable "y"
mouse_event MOUSEEVENTF_LEFTDOWN, x, y, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, x, y, 0, 0
End Sub
GRACIAS POR LEER!!!