diff --git a/src/main/java/d4dj/d4dj/App.java b/src/main/java/d4dj/d4dj/App.java index af5282c..4226e0f 100644 --- a/src/main/java/d4dj/d4dj/App.java +++ b/src/main/java/d4dj/d4dj/App.java @@ -1,5 +1,6 @@ package d4dj.d4dj; +import java.awt.Color; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Point; @@ -116,8 +117,8 @@ public class App new Rectangle(295,783,200,26), }; Rectangle[] cropPoints2 = { - new Rectangle(295,537,200,26), - new Rectangle(295,614,200,26) + new Rectangle(295,0,200,26), + new Rectangle(295,77,200,26) }; Rectangle[] cropPoints3 = { new Rectangle(295,183,200,26), @@ -146,7 +147,7 @@ public class App File[] list = f.listFiles(); try { Image leaderboard = ImageIO.read(list[0]); - Image leaderboard2 = ImageIO.read(list[1]); + BufferedImage leaderboard2 = ImageIO.read(list[1]); Image leaderboard3 = ImageIO.read(list[2]); Image leaderboard4 = ImageIO.read(list[3]); Image leaderboard5 = ImageIO.read(list[4]); @@ -159,10 +160,43 @@ public class App drawData(g,leaderboard, 20, (i+20)*26, 340, (i+20)*26+26, cropPoints1[i].x, cropPoints1[i].y+40, cropPoints1[i].x+340, cropPoints1[i].y+cropPoints1[i].height+40, null); drawData(g,leaderboard, 20, (i+40)*26, 130, (i+40)*26+24, cropPoints1[i].x+351, cropPoints1[i].y+34, cropPoints1[i].x+481, cropPoints1[i].y+58, null); } + + + //start at X 146 + //Find R73,G40,B180 + //Scroll down until you find R>220,G>220,B>220 + //Scroll back up until you find 36,17,77 + //That is the Y position you start at. + int MAXTRIES=1000; + int count=0; + int YMarker=145; + while (count++=220&&c.getGreen()>=220&&c.getBlue()>=220) { + System.out.println("Step 2 - Found! Y:"+(YMarker-1)); + break; + } + }count=0; + while (count++