Aki te dejo el codigo, me parece k ya estaba, para la proxima, te acosejo que buskes mas..
Private Type POINTAPI
x As Long
y As Long
End Type
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Dim Pt As POINTAPI
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfte r As Long, ByVal x As Long, y, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1
Private Const TOPMOST_FLAGS = SWP_NOMOVE Or SWP_NOSIZE
Public Sub MakeTopMost(hwnd As Long)
SetWindowPos hwnd, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS
End Sub
Private Sub Form_Load()
Call MakeTopMost(Me.hwnd)
Timer1.Interva l = 100
Me.FontSize = 13
End Sub
Private Sub Timer1_Timer()
GetCursorPos Pt
Me.CurrentX = 0
Me.CurrentY = 0
Me.Cls
Me.Print "Poisicion::"
Me.Print "X:" + Str$(Pt.x) + vbCrLf + "Y:" + Str$(Pt.y)
End Sub
Salu2