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

Requested coordinates are outside the main screen's dimensions #280

Closed
jam3sn opened this issue Mar 31, 2017 · 7 comments
Closed

Requested coordinates are outside the main screen's dimensions #280

jam3sn opened this issue Mar 31, 2017 · 7 comments

Comments

@jam3sn
Copy link

jam3sn commented Mar 31, 2017

Expected Behavior

var mouse = robot.getMousePos(); var color = '#'+robot.getPixelColor(mouse.x, mouse.y);

Should return the color at the mouse position.

Current Behavior

Returns the following error when clicking on the secondary monitor
Uncaught Error: Requested coordinates are outside the main screen's dimensions.

Possible Solution

Not too sure, I see you have fixed other multi-screen issues, this too would be highly beneficial if fixed as I'd like to use this as a color picker on my app.

Steps to Reproduce (for bugs)

  1. Use var mouse = robot.getMousePos(); var color = '#'+robot.getPixelColor(mouse.x, mouse.y);
  2. Trigger it on a secondary screen

Context

I've built a color palette tool and wish add a color picker to it, your library allows me to easily achieve this!
https://github.com/jam3sn/ClickPalette

Your Environment

  • RobotJS version: 0.4.7
  • Node.js version: 6.9.2
  • npm version: 3.10.9
  • Operating System: Windows 10
@jareddgotte
Copy link

This is an old issue, but it was the first one I found as I was searching for a solution to the same problem. Refer to issue #88 for any updates.

@Louis-7
Copy link

Louis-7 commented Jul 10, 2019

The link http://clickpalette.com/ is NSFW. Please remove it.

@jam3sn
Copy link
Author

jam3sn commented Jul 10, 2019

@Louis-7 This is an old issue, opened over 2 years ago. Since then I've discontinued ClickPalette, therefore the domain has expired and so I'm no longer in ownership of it. I've removed the link above and will be closing the issue.

@jam3sn jam3sn closed this as completed Jul 10, 2019
@Louis-7
Copy link

Louis-7 commented Jul 10, 2019

Thanks.

@jonschlinkert
Copy link

I'm still experiencing this issue. I'm not sure why it was closed since it wasn't resolved.

@Louis-7
Copy link

Louis-7 commented Dec 16, 2019

@jonschlinkert have you been checked this link -> #88?

@brandonros
Copy link

brandonros commented Feb 12, 2020

I have this error on single monitor (MacBook Pro).

image

robot.getPixelColor(430, 840) throws the error, which is well within the usable regions.

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

No branches or pull requests

5 participants