Package com.poker.ui.robot.reaction

Examples of com.poker.ui.robot.reaction.UIReactionSeq


       
        if (analystResult.getSurrogate() != null) {
            copyStringToClipboard(analystResult.getSurrogate());
        }

        final UIReactionSeq reactionSeq = pdata.getRoomSettings().getUiReactionSeq(
                analystResult.getReaction());
        if (reactionSeq == null) {
            System.err.println("Event chain for " + analystResult.getReaction()
                    + " is not initialized");
            //    return false;
View Full Code Here


    }

    @Override
    public void addReactionsBB() {

        UIReactionSeq reactionSeq;
        UIReactionStep reactionStep;
        // redesign
        //UIReaction.UIR_BB_SET
        reactionSeq = new UIReactionSeq();
        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, getPtBBButton());

        reactionSeq.addReactionStep(reactionStep);

        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_CLICK, KeyEvent.VK_ESCAPE, null);
        reactionSeq.addReactionStep(reactionStep);

        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, getPtAutoPost());

        reactionSeq.addReactionStep(reactionStep);

        addUiReactionToSeq(UIReaction.UIR_BB_SET, reactionSeq);
        // redesign
        //UIReaction.UIR_BB_WAIT_FOR

        reactionSeq = new UIReactionSeq();
        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, getPtBBWaitButton());

        reactionSeq.addReactionStep(reactionStep);

        addUiReactionToSeq(UIReaction.UIR_BB_WAIT_FOR, reactionSeq);
    };
View Full Code Here

    };

    @Override
    public void addReactionsActions() {

        UIReactionSeq reactionSeq;
        final UIReactionStep reactionStep;

        //UIReaction.UIR_ACTION_FOLD
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(295, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_FOLD, reactionSeq);

        //UIReaction.UIR_ACTION_CHECK
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(365, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_CHECK, reactionSeq);
       
        //UIReaction.UIR_ACTION_ALLIN
        // redesign       
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(447, 295)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_WAIT,
                null, 300, null));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(434, 330)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_ALLIN, reactionSeq);
       

        //UIReaction.UIR_ACTION_RAISE
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(449, 309)));
        for (int i = 0; i < 7; i++) {
            reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                    UIReactionDoing.KEY_CLICK, KeyEvent.VK_DELETE, null));
        }
        for (int i = 0; i < 7; i++) {
            reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                    UIReactionDoing.KEY_CLICK, KeyEvent.VK_BACK_SPACE, null));
        }
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_V, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_V, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(435, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_RAISE, reactionSeq);

        //UIReaction.UIR_ACTION_CALL
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(360, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_CALL, reactionSeq);

        //UIReaction.UIR_CLOSE_WINDOW
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(476, 9)));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(203, 293)));

        addUiReactionToSeq(UIReaction.UIR_CLOSE_WINDOW, reactionSeq);
       

      //UIReaction.UIR_ACCEPT_SYSTEM_WINDOW
        reactionSeq = new UIReactionSeq();
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(203, 293)));

        addUiReactionToSeq(UIReaction.UIR_ACCEPT_SYSTEM_WINDOW, reactionSeq);
       
        //UIReaction.UIR_ACCEPT_SYSTEM_WINDOW_2
        reactionSeq = new UIReactionSeq();
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(190, 273)));

        addUiReactionToSeq(UIReaction.UIR_ACCEPT_SYSTEM_WINDOW_2, reactionSeq);

    };
View Full Code Here

    };

    @Override
    public void addReactionOpenWindow() {

        UIReactionSeq reactionSeq;
        final UIReactionStep reactionStep;

        //UIReaction.UIReaction.UIR_OPEN_WINDOW

        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(405, 500)));
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_MOVE, 0, new Point(1200, 1000)));

        addUiReactionToSeq(UIReaction.UIR_OPEN_WINDOW, reactionSeq);

        //UIR_MN_CLOSE_SYSTEM_WINDOW
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(376, 414)));
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_MOVE, 0, new Point(1200, 1000)));

        addUiReactionToSeq(UIReaction.UIR_MN_CLOSE_SYSTEM_WINDOW, reactionSeq);

        //UIR_TAKE_BUYIN_SUMM
        reactionSeq = new UIReactionSeq();

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(188, 216)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_PRESS, InputEvent.BUTTON1_MASK, null));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_MOVE, 0, new Point(288, 216)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_RELEASE, InputEvent.BUTTON1_MASK, null));              
        /* 
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                          UIReactionDoing.KEY_PRESS,
                          KeyEvent.VK_SHIFT, null));
       
        for(int i = 0; i<10; i++){
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                             UIReactionDoing.KEY_CLICK,
                             KeyEvent.VK_RIGHT, null));
        }
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                           UIReactionDoing.KEY_RELEASE,
                           KeyEvent.VK_SHIFT, null));
                          
                           */

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_C, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_C, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_CONTROL, null));

        addUiReactionToSeq(UIReaction.UIR_TAKE_BUYIN_SUMM, reactionSeq);

        //UIR_ACCEPT_BUYIN
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(198, 320)));
        addUiReactionToSeq(UIReaction.UIR_ACCEPT_BUYIN, reactionSeq);

        //UIR_REJECT_BUYIN
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(280, 320)));
        addUiReactionToSeq(UIReaction.UIR_REJECT_BUYIN, reactionSeq);

    };
View Full Code Here

    }

    @Override
    public void addReactionsBB() {

        UIReactionSeq reactionSeq;
        UIReactionStep reactionStep;

        //UIReaction.UIR_BB_SET
        reactionSeq = new UIReactionSeq();
        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, getPtBBButton());

        reactionSeq.addReactionStep(reactionStep);

        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_CLICK, KeyEvent.VK_ESCAPE, null);
        reactionSeq.addReactionStep(reactionStep);

        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, getPtAutoPost());

        reactionSeq.addReactionStep(reactionStep);

        addUiReactionToSeq(UIReaction.UIR_BB_SET, reactionSeq);

        //UIReaction.UIR_BB_WAIT_FOR

        reactionSeq = new UIReactionSeq();
        reactionStep = new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, getPtBBWaitButton());

        reactionSeq.addReactionStep(reactionStep);

        addUiReactionToSeq(UIReaction.UIR_BB_WAIT_FOR, reactionSeq);
    };
View Full Code Here

    };

    @Override
    public void addReactionsActions() {

        UIReactionSeq reactionSeq;
        final UIReactionStep reactionStep;

        //UIReaction.UIR_ACTION_FOLD
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(295, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_FOLD, reactionSeq);

        //UIReaction.UIR_ACTION_CHECK
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(365, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_CHECK, reactionSeq);
       
        //UIReaction.UIR_ACTION_ALLIN
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(447, 295)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_WAIT,
                null, 300, null));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(434, 330)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_ALLIN, reactionSeq);
       

        //UIReaction.UIR_ACTION_RAISE
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(449, 309)));
        for (int i = 0; i < 7; i++) {
            reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                    UIReactionDoing.KEY_CLICK, KeyEvent.VK_DELETE, null));
        }
        for (int i = 0; i < 7; i++) {
            reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                    UIReactionDoing.KEY_CLICK, KeyEvent.VK_BACK_SPACE, null));
        }
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_V, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_V, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(435, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_RAISE, reactionSeq);

        //UIReaction.UIR_ACTION_CALL
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(360, 335)));

        addUiReactionToSeq(UIReaction.UIR_ACTION_CALL, reactionSeq);

        //UIReaction.UIR_CLOSE_WINDOW
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(476, 9)));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(203, 293)));

        addUiReactionToSeq(UIReaction.UIR_CLOSE_WINDOW, reactionSeq);
       

      //UIReaction.UIR_ACCEPT_SYSTEM_WINDOW
        reactionSeq = new UIReactionSeq();
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(203, 293)));

        addUiReactionToSeq(UIReaction.UIR_ACCEPT_SYSTEM_WINDOW, reactionSeq);
       
        //UIReaction.UIR_ACCEPT_SYSTEM_WINDOW_2
        reactionSeq = new UIReactionSeq();
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(175, 273)));

        addUiReactionToSeq(UIReaction.UIR_ACCEPT_SYSTEM_WINDOW_2, reactionSeq);

    };
View Full Code Here

    };

    @Override
    public void addReactionsRebuy() {

        UIReactionSeq reactionSeq;
        final UIReactionStep reactionStep;

        //UIReaction.UIReaction.UIR_REBUY

        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(27, 258)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(59, 216)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(187, 216)));

        for (int i = 0; i < 10; i++) {
            reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                    UIReactionDoing.KEY_CLICK, KeyEvent.VK_DELETE, null));
        }

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_V, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_V, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(187, 319)));

        addUiReactionToSeq(UIReaction.UIR_REBUY, reactionSeq);
    };
View Full Code Here

    };

    @Override
    public void addReactionOpenWindow() {

        UIReactionSeq reactionSeq;
        final UIReactionStep reactionStep;

        //UIReaction.UIReaction.UIR_OPEN_WINDOW

        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(405, 500)));
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_MOVE, 0, new Point(1200, 1000)));

        addUiReactionToSeq(UIReaction.UIR_OPEN_WINDOW, reactionSeq);

        //UIR_MN_CLOSE_SYSTEM_WINDOW
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(376, 414)));
       
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_MOVE, 0, new Point(1200, 1000)));

        addUiReactionToSeq(UIReaction.UIR_MN_CLOSE_SYSTEM_WINDOW, reactionSeq);

        //UIR_TAKE_BUYIN_SUMM
        reactionSeq = new UIReactionSeq();

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(188, 216)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_PRESS, InputEvent.BUTTON1_MASK, null));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_MOVE, 0, new Point(288, 216)));
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_RELEASE, InputEvent.BUTTON1_MASK, null));              
        /* 
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                          UIReactionDoing.KEY_PRESS,
                          KeyEvent.VK_SHIFT, null));
       
        for(int i = 0; i<10; i++){
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                             UIReactionDoing.KEY_CLICK,
                             KeyEvent.VK_RIGHT, null));
        }
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                           UIReactionDoing.KEY_RELEASE,
                           KeyEvent.VK_SHIFT, null));
                          
                           */

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_CONTROL, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_PRESS, KeyEvent.VK_C, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_C, null));

        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_KEYBOARD,
                UIReactionDoing.KEY_RELEASE, KeyEvent.VK_CONTROL, null));

        addUiReactionToSeq(UIReaction.UIR_TAKE_BUYIN_SUMM, reactionSeq);

        //UIR_ACCEPT_BUYIN
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(198, 320)));
        addUiReactionToSeq(UIReaction.UIR_ACCEPT_BUYIN, reactionSeq);

        //UIR_REJECT_BUYIN
        reactionSeq = new UIReactionSeq();
        reactionSeq.addReactionStep(new UIReactionStep(UIReactionPrimitive.UIRP_MOUSE,
                UIReactionDoing.MOUSE_CLICK, 0, new Point(280, 320)));
        addUiReactionToSeq(UIReaction.UIR_REJECT_BUYIN, reactionSeq);

    };
View Full Code Here

TOP

Related Classes of com.poker.ui.robot.reaction.UIReactionSeq

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.