I have this code to move the mouse pointer to a desired location on a form (I think):
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Call SetCursorPos 100,45 ' for example.
Now, I need similar function to return X, and Y value of the mouse pointer where ever it might be on the form. I am looking for GetCursorPos(...)