Java examples for java.awt:Robot
Robot shift Add
//package com.java2s; import java.awt.Robot; import java.awt.event.KeyEvent; public class Main { private static void shiftAdd(Robot robot, int code) { robot.keyPress(KeyEvent.VK_SHIFT); robot.keyPress(code);// w ww .j a v a2 s . c om robot.keyRelease(code); robot.keyRelease(KeyEvent.VK_SHIFT); } }