View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. Robot class Control functions

    by , 03-04-2012 at 10:46 AM
    Robot class uses these control functions:

    Mouse control functions

    void mouseMove(int x, int y):To coordinate (x,y), mouse cursor is moved by using this function. At screen’s top corner (left), coordinated are shown.
    Java Code:
    void mousePress(int buttons)
    void mouseRelease(int button)
    Button clicks are performed by this function pair. Input arguments are as following:
    java.awt.event.InputEvent.BUTTON1_MASK   // left mouse button 
    java.awt.event.InputEvent.BUTTON2_MASK
    ...

    Updated 03-04-2012 at 11:07 AM by Java AWT

    Categories
    Robot