Mouse Pointer Location - (Get/Set) API Calls (GetCursorPos/SetCursorPos), Controls? (1 Viewer)

Cosmos75

Registered User.
Local time
Today, 09:28
Joined
Apr 22, 2002
Messages
1,281
Found two API calls for getting the screen position of the mouse pointer and setting its position.
Is there a similiar API call for the x,y location for controls (Buttons, TextBoxes, ComboBoxes, and so on)?
:confused:

I would like to have the mouse pointer move to a control via VBA.

I found this tip for VB but I can't get it to work as there is no .TwipsPerPixelX or .TwipsPerPixelXY property for Screen object (is that what you call it?) in Access. At least as for as I can tell!
:(
 

Attachments

  • CursorMovement97.zip
    11.7 KB · Views: 968
  • CursorMovement2000.zip
    10.6 KB · Views: 1,831
Last edited:

Users who are viewing this thread

Top Bottom