mrtoanbin > 11-10-18, 12:55 PM
lmthu > 12-10-18, 11:11 AM
ongke0711 > 12-10-18, 02:48 PM
Option Compare Database
Option Explicit
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Declare Function GetCursorPos Lib "user32" _
(lpPoint As POINTAPI) As Long
Public Function GetXCursorPos() As Long
Dim pt As POINTAPI
GetCursorPos pt
GetXCursorPos = pt.X
End Function
Public Function GetYCursorPos() As Long
Dim pt As POINTAPI
GetCursorPos pt
GetYCursorPos = pt.Y
End Function
tieu_ngao > 12-10-18, 11:33 PM