|
|
|
@ -160,7 +160,7 @@ class Server |
|
|
|
|
BufferedImage img=r.createScreenCapture(new Rectangle(92, 171, 86, 1)); |
|
|
|
|
for (int i=img.getWidth()-1;i>=0;i--){ |
|
|
|
|
if ((img.getRGB(i,0)&255)>100){ |
|
|
|
|
return i/(img.getWidth()-1)*100; |
|
|
|
|
return (float)i/(img.getWidth()-1)*100; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return 0; |
|
|
|
@ -169,7 +169,7 @@ class Server |
|
|
|
|
BufferedImage img=r.createScreenCapture(new Rectangle(92, 211, 86, 1)); |
|
|
|
|
for (int i=img.getWidth()-1;i>=0;i--){ |
|
|
|
|
if ((img.getRGB(i,0)&255)>100){ |
|
|
|
|
return i/(img.getWidth()-1)*100; |
|
|
|
|
return (float)i/(img.getWidth()-1)*100; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return 0; |
|
|
|
@ -178,7 +178,7 @@ class Server |
|
|
|
|
BufferedImage img=r.createScreenCapture(new Rectangle(781, 134, 432, 1)); |
|
|
|
|
for (int i=img.getWidth()-1;i>=0;i--){ |
|
|
|
|
if ((img.getRGB(i,0)&255)>100){ |
|
|
|
|
return i/(img.getWidth()-1)*100; |
|
|
|
|
return (float)i/(img.getWidth()-1)*100; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return 0; |
|
|
|
|