import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class JAVAROBOT {
public static void main(String[] rk) {
try {
Robot robot = new Robot();
robot.delay(2000);
robot.keyPress(KeyEvent.VK_H);
robot.keyPress(KeyEvent.VK_I);
robot.keyPress(KeyEvent.VK_SPACE);
robot.keyPress(KeyEvent.VK_B);
robot.keyPress(KeyEvent.VK_U);
robot.keyPress(KeyEvent.VK_D);
robot.keyPress(KeyEvent.VK_Y);
} catch (AWTException e) {
e.printStackTrace();
}
}
}
No comments:
Post a Comment