Jump to content

Something doesn't make any sense..

Recommended Posts


I have a little question:

I used the Help File and searched on the forum for the MouseCoordsMode (for MouseClick function).

I get this information:

0 = relative coords to the active window

1 = absolute screen coordinates (default)

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

So, I wanted to get the position of mouse in a specific window,

So I put in the top of my script this code:

Opt("MouseCoordMode",0) // 0 = window.

And in the info tool I changed to this:

Posted Image


when I run the script, the mouse goes to the wrong position O_o


when I changed this line:

Opt("MouseCoordMode",0) // 0 = window. TO:

Opt("MouseCoordMode",1) ,

The mouse moved to the position I wanted O_o

Why ?

In the info tool, as you see, the coord mode was for "Window",

And when the Opt was MooseCoordMode, 1, then the script works (which 1 referres to 1 = absolute screen coordinates (default))

Any ideas? :S

Thanks !

Link to comment
Share on other sites

Your results our indeed backwards. But running a quick test of my own with notepad I don't seem to have any problems. Did you verify the results the info tool gave you? Just by looking at them you should be able to tell if they our absolute or window coordinates. If you post the actual mouse coordinates I might better help in spotting the problem..

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

  • Recently Browsing   0 members

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