Jump to content

what is the purpose of MouseCoordMode


Recommended Posts

Hi,

What is the purpose of this function "MouseCoordMode"? I guess maybe it is used to point at some objects so that even if the object is moved, the mouse will still be able to click at the correct position. Is this correct. How to use MouseCoordMode? Again I guess may be it is to be written in this way.

What do they mean by 0 = relative coords to the active window, and 2 = relative coords to the client area of the active window?

_________________________________________________________________________

AutoItSetOption ( "MouseCoordMode" [, 2] ) ;by putting this statement so what must I do next?

__________________________________________________________________________-

-----------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------

Link to comment
Share on other sites

0 means the mouse works within the axis of the window. This includes the title bar and borders.

1 means the mouse works within the axis of the monitor screen. Same as the way that you move your mouse around manually with freedom.

2 means s the mouse works within the axis of the client area of the window. This is excluding the title bar and borders.

The option gives you more control of where you can define the area where you want the mouse to work within. If you only dad the default option, then if a window moved, then the mouse co-ordinates in your script would be incorrect, so the other options give more precise handling with windows and the mouse.

:shocked:

Edit:

By saying axis, as in meaning area.

Edited by MHz
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...