Article ID: 114777
Article Last Modified on 10/29/2003
Type POINTAPI ' This holds the logical cursor information
x As Integer
y As Integer
End Type
Declare Sub GetCursorPos Lib "User" (lpPoint As POINTAPI)
Sub Form_Load ()
timer1.Interval = 100
End Sub
Sub Timer1_Timer ()
Dim rect As POINTAPI
' Get the current mouse cursor coordinates:
Call GetCursorPos(rect)
FORM1.Cls
' Print out current position on the form:
Print "Current X = " & rect.x
Print "Current Y = " & rect.y
End Sub
Additional query words: 3.00
Keywords: KB114777