Ok, vale te entiendo. Estoy intentando capturar el click del raton fuera del formulario y no lo consigo, utilizo este code:
Código [Seleccionar]
Private Sub CapturaClick()
Dim x As Integer = Cursor.Position.X
Dim y As Integer = Cursor.Position.Y
Label1.Text = _
"Usando Cursor.Position: " & vbCrLf & _
"x= " & x & ", Y = " & y
Dim p As POINT_API
GetCursorPos(p)
Label2.Text = _
"Usando GetCursorPos: " & vbCrLf & _
"x= " & p.X & ", Y = " & p.Y
End Sub
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As MouseEventArgs) Handles MyBase.MouseClick
CapturaClick()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
' No se que debe ir aquí
End Sub