Robot getpixelColor returns wrong color sometimes...
Hey
I ve got a problem. I read Pixels from a Game with the Robot getPixelColor method. Sometimes it returns right values, sometimes wrong! I check some pixels if they are white. The pixels dont move, so this same pixels are white everytime!.
Now sometimes he returns wrong colors. Instead of 255,255,255 ...it returns 0,12,25 or something like that. (with the same x, y coordinate).
My assumption is: My code is like following
CheckPixel(MyRobot.getPixelColor(30,40);
CheckPixel(MyRobot.getPixelColor(31,45);
CheckPixel(MyRobot.getPixelColor(36,20);
CheckPixel(MyRobot.getPixelColor(51,70);
...
..
Now it has to return 255,255,255 but somtimes its not working, he return 0,0.12 .... 0,0,15..... 255,255,255 .. or something like that
Could it be, that java does not refresh the robot object so fast when I call getPixelColor so fast in a row?
Is there a command with which I force Java to wait until the pointer is on the right x,y coordinate? Except of Thread.Sleep();
Thank you for your help..

