Jump to content

MouseGetPos and ControlGetPos


Silver21uk
 Share

Recommended Posts

Ok ive bin working on getting the positions for both the active window and where the mouse is in relation to this window. Now. i get the coordinates for the control but when im using the mouse and point to those exact coordinates they are no where near the control?????

Mind boggling any ideas?

Link to comment
Share on other sites

You need to look at this option

MouseCoordMode

Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window:

0 = relative coords to the active window

1 = absolute screen coordinates (default)

2 = relative coords to the client area of the active window

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...