VB中获取屏幕当前鼠标坐标
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As LongPrivate Type POINTAPI
x As Long
y As Long
End Type
Private Sub Timer1_Timer()
Dim lP As POINTAPI
GetCursorPos lP
Label1.Caption = Str(lP.x) + "/" + Str(lP.y)
End Sub 我好像看过了·
页:
[1]