Jump to content

Mouse Coordinates needs to be changed in different computers.


Ram
 Share

Recommended Posts

Why should I keep changing the coordinates of the mouse always according to the computer's resolution.

Is there anything that can be fixed mouse coordinates for a particular window on any computer's resolution?

I was looking at the coords in the help and also in Windows Info - Clicked on options Coord mode: It shows Screen, Window, Client. - I clicked all the three I get the same mouse values. I was just wondering - does it make a difference?

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

Or is it possible to have the script run on all the computer perfectly with same mouse coordinates - rather than just one computer?

Link to comment
Share on other sites

I was looking at the coords in the help and also in Windows Info - Clicked on options Coord mode: It shows Screen, Window, Client. - I clicked all the three I get the same mouse values. I was just wondering - does it make a difference?

The coords shown wont change when a different coord mode is chosen. The 'finder tool' will have to be dragged to the location in question each time a different option is chosen.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Link to comment
Share on other sites

The coords shown wont change when a different coord mode is chosen. The 'finder tool' will have to be dragged to the location in question each time a different option is chosen.

Oh ok. I will check on finder tool. So what is the mode that I need to choose to make the mouse coordinates work on every computer?

Link to comment
Share on other sites

If the different computers have different resolutions, then naturally the mouse coords will be different. Try using WinGetClientSize, then scale the coordinates by what that function returns compared to the size of your original window or desktop.

Of course, whenever possible it's best to ControlClick and related commands wherever possible, unless it's absolutely necessary to click somewhere there's no control (like a graphics area).

Link to comment
Share on other sites

If the different computers have different resolutions, then naturally the mouse coords will be different. Try using WinGetClientSize, then scale the coordinates by what that function returns compared to the size of your original window or desktop.

Of course, whenever possible it's best to ControlClick and related commands wherever possible, unless it's absolutely necessary to click somewhere there's no control (like a graphics area).

Hmm.. I have no other go than use the mouse clicks as the windows info is not able to get to control info.

So what does this:

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

So all the three are the same?

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...