Robot: keyRelease(int keycode) : Robot « java.awt « Java by API






Robot: keyRelease(int keycode)

 
import java.awt.Robot;
import java.awt.event.KeyEvent;

public class Main {
  public static void main(String[] argv) throws Exception {

    Robot robot = new Robot();

    robot.keyPress(KeyEvent.VK_A);
    robot.keyRelease(KeyEvent.VK_A);

  }
} 

   
  








Related examples in the same category

1.Robot: createScreenCapture(Rectangle screenRect)
2.Robot: getPixelColor(int x, int y)
3.Robot: keyPress(int keycode)
4.Robot: mouseMove(int x, int y)
5.Robot: mousePress(int buttons)
6.Robot: mouseRelease(int buttons)
7.Robot: mouseWheel(int wheelAmt)