boolean openingboard;
{
Robot robot = new Robot();
Color color3 = new Color(108, 25, 85);
Rectangle rectangle = new Rectangle(0, 0, 1365, 770);
while(true)
{
BufferedImage image = robot.createScreenCapture(rectangle);
search: for(int x = 0; x < rectangle.getWidth(); x++)
{
for(int y = 0; y < rectangle.getHeight(); y++)
{
if(image.getRGB(x, y) == color3.getRGB())
{
System.out.println("About to finish and return true");
return true;
}
System.out.println("About to finish and return false");
}
}
}
}
的錯誤是: 的java:71:回到外面方法返回外面方法錯誤
還真
^
我不知道這是什麼情況發生,請幫助!
所有這些代碼裏面的方法嗎? – 2012-02-16 02:27:35
裏面的方法開幕?是不是主要的方法,但我應該張貼? – user1179522 2012-02-16 02:29:51