Package net.suncrescent.clicker.robot.action

Examples of net.suncrescent.clicker.robot.action.Condition


  private ArrayList<Action> actionList = new ArrayList<Action>();

  public FarmVilleActionLoader() {

    // if 845,700 is blue
    Condition oneButtonDialogIsVisible = new Condition(ConditionType.PIXEL_COLOR_MATCHES);
    oneButtonDialogIsVisible.setConditionParameters(new Point(845, 700), new Color(2, 114, 171));

    // if 899,699 is blue
    Condition dialogIsVisible = new Condition(ConditionType.PIXEL_COLOR_MATCHES);
    dialogIsVisible.setConditionParameters(new Point(899, 699), new Color(2, 114, 171));

    // Setup Time
    this.actionList.add(new Action(15000, 1216, 572, MouseAction.NONE));

    // Dialog
View Full Code Here


      for (final Action a : this.actionSequence) {

        Robot.log.debug("Executing action: " + a.toString());

        // check condition
        final Condition cond = a.getCondition();

        if (cond == null || this.evaluateCondition(cond)) {

          // position the pointer
          this.smoothMove(a.getX(), a.getY());
View Full Code Here

TOP

Related Classes of net.suncrescent.clicker.robot.action.Condition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.