Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define the X,Y position? #146

Open
leoheck opened this issue May 15, 2022 · 3 comments
Open

How to define the X,Y position? #146

leoheck opened this issue May 15, 2022 · 3 comments
Labels

Comments

@leoheck
Copy link

leoheck commented May 15, 2022

I could not find in the Readme anything about the X,Y position so I don't know how this is going to work across multiple screen sizes and resolutions. Does it remain the same?

After some time I figured that I could use the mouse move m: to place the mouse at a specific location to have an easy way to get those x,y pairs. Do you have a better way to know the x,y value of a specific point on the screen?

How does this work? Is this related to the resolution of the screen?

How do you determine the x,y you want to click?

@BlueM
Copy link
Owner

BlueM commented May 16, 2022

There are a number of ways to get the coordinates of a point:

  • Move the mouse there, then run cliclick p
  • Use macOS’ Digital Color Meter and enable displaying the coordinates
  • Use some 3rd-party tool such as xScope

@BlueM BlueM added the question label May 16, 2022
@leoheck
Copy link
Author

leoheck commented May 16, 2022

Thank you, this a good and important info to be on Readme.

Now, how does it work? Is this based on the resolution? What happens with the coordinates when using different screen sizes. Are they going to happen in the same relative location?

@BlueM
Copy link
Owner

BlueM commented Jul 21, 2022

The coordinates will always be relative to the top left corner of the main screen, regardless of the screen size. If you tell cliclick to move to 2500,1800 on a screen which is only 1024 x 768, no error will occur, the cursor will just be moved as far as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants