I am trying to type a semicolon using the Java Robot
class but it is not functioning properly. It simply will not type anything and it causes me to highlight everything I click after the program ends. Does someone know why this is not working?
Here is my code:
public class tEST {
public static void main (String []args) throws AWTException {
Robot robot=new Robot();
robot.delay(2000);
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_COLON);
robot.keyRelease(KeyEvent.VK_COLON);
robot.keyRelease(KeyEvent.VK_SHIFT);
}
}