Tienes razon mucho mas corto, quedaria una cosa asi:
Saludos y gracias
Código [Seleccionar]
Option Explicit
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Sub Form_Load()
Timer1.Interval = 10
End Sub
Private Sub Timer1_Timer()
Dim PT As POINTAPI
GetCursorPos PT
Label1.Caption = PT.X & "-" & PT.Y
End Sub
Saludos y gracias