When you capture a screen with screenCapture: var img = robot.screen.capture(x ,y, width, height);
and define x and y the variable img should have a x and y (img.x, img.y) which is not the case.
Current Behavior
variable doesn't get X and Y value it says undefined if you log it.
Also when you want to capture a certain area where x>0 and y>0 then the colorAt method will be broken and gives wrong color codes.
Possible Solution
I have no clue.
Steps to Reproduce (for bugs)
So what I am trying to do is creating a capture of the position of my client. When I print the raw Bitmap data to a file the capture seems to be fine and takes a screenshot of my client.
When I now hover over my client it logs me mostly #FFFFFF which is white... However when I choose the value 0 for x and y and drag my client to the top left corner of my display it seems to work...
I hope to get some help...
All regards,
Swolly
Context
Well I'm stuck right now since I cannot continue with my project...
Expected Behavior
When you capture a screen with screenCapture:
var img = robot.screen.capture(x ,y, width, height);
and define x and y the variable img should have a x and y (img.x, img.y) which is not the case.
Current Behavior
variable doesn't get X and Y value it says undefined if you log it. Also when you want to capture a certain area where x>0 and y>0 then the colorAt method will be broken and gives wrong color codes.
Possible Solution
I have no clue.
Steps to Reproduce (for bugs)
So what I am trying to do is creating a capture of the position of my client. When I print the raw Bitmap data to a file the capture seems to be fine and takes a screenshot of my client.
When I now hover over my client it logs me mostly #FFFFFF which is white... However when I choose the value 0 for x and y and drag my client to the top left corner of my display it seems to work...
I hope to get some help...
All regards, Swolly
Context
Well I'm stuck right now since I cannot continue with my project...
Your Environment