while (true) { sleep(50); getColorArray2d(0);// reresh color // array if (findRGBXYs(getColorArray2d(), new Rectangle(182, 45, 1, 180), null, new RGB(16579837, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } if (findRGBXYs(getColorArray2d(), new Rectangle(342, 45, 1, 180), null, new RGB(16579837, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } if (findRGBXYs(getColorArray2d(), new Rectangle(172, 55, 177, 1), null, new RGB(16579837, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } if (findRGBXYs( getColorArray2d(), new Rectangle(172, 215, 177, 1), null, new RGB(16579837, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } if (findRGBXYs(getColorArray2d(), new Rectangle(182, 45, 1, 180), null, new RGB(12764106, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } if (findRGBXYs(getColorArray2d(), new Rectangle(342, 45, 1, 180), null, new RGB(12764106, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } if (findRGBXYs(getColorArray2d(), new Rectangle(172, 55, 177, 1), null, new RGB(12764106, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } if (findRGBXYs( getColorArray2d(), new Rectangle(172, 215, 1, 180), null, new RGB(12764106, RGB.COLOR_TYPE_SCAR), 1, 5, 5, 5).length > 0) { continue; } break; }