public static void main(String[] args) {
try {
Thread.sleep(1000);
Robot robot = new Robot();
robot.delay(1000);
for (int key = KeyEvent.VK_A; key <= KeyEvent.VK_Z; key++) {
robot.keyPress(key);
robot.keyRelease(key);
}
} catch (Exception e) {
e.printStackTrace();
}
}
try {
Thread.sleep(1000);
Robot robot = new Robot();
robot.delay(1000);
for (int key = KeyEvent.VK_A; key <= KeyEvent.VK_Z; key++) {
robot.keyPress(key);
robot.keyRelease(key);
}
} catch (Exception e) {
e.printStackTrace();
}
}