How do I simulate keystrokes?

John Zukowski

Starting with 1.3 you can use the java.awt.Robot class:

Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_J);
robot.keyRelease(KeyEvent.VK_J);
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact