Ive been working on a totally independent mouse moving program, its quite good
heres some code taken from it jope it helps you
Code:Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long Private Type RECT Left As Long Top As Long Right As Long Bottom As Long End TypeCode:Private Sub Timer1_Timer() Label1.Caption = GetCursor End SubCode:Public Function GetCursor() Dim wndrect As RECT Dim mousexy As POINTAPI GetWindowRect SelWND, wndrect GetCursorPos mousexy GetCursor = (mousexy.X - wndrect.Left) & "," & (mousexy.Y - wndrect.Top) End Function





Reply With Quote