I would like to write an application who creates input for a non-Java application in Windows. With the Robot class it\'s easy to generate the input, but I need to set the fo
Robot r = new Robot();
r.keyPress(KeyEvent.VK_ALT);
r.keyPress(KeyEvent.VK_TAB);
r.delay(10); //set the delay
r.keyRelease(KeyEvent.VK_ALT);
r.keyRelease(KeyEvent.VK_TAB);