Пример #1
0
  // BANKING
  private boolean waitBoxScreen(long time) {
    long maxTime = System.currentTimeMillis() + time;
    while (System.currentTimeMillis() < maxTime) {
      ColourPoint[] counts =
          Screen.findColours(new Color(60, 50, 45), 94, 108, 439, 313, new Tolerance(20));
      if (counts.length > 2000) {
        return true;
      }
    }

    return false;
  }
Пример #2
0
  private boolean waitContinue(long time) {
    long maxTime = System.currentTimeMillis() + time;

    while (System.currentTimeMillis() < maxTime) {
      ColourPoint[] pts =
          Screen.findColours(new Color(40, 75, 40), 227, 513, 293, 522, new Tolerance(40));
      if (pts.length > 200) {
        // println("Found continue");
        return true;
      }
    }

    return false;
  }