Answers for "press enter in robot java"

0

press enter in robot java

public static void pressEnterKey() {
		        Robot robot1 = null;
		        try {
		            robot1 = new Robot();
		        } catch (AWTException e) {
		            // TODO Auto-generated catch block
		            e.printStackTrace();
		        }
		        robot1.keyPress(KeyEvent.VK_ENTER);
		        robot1.keyRelease(KeyEvent.VK_ENTER);
		    }
Posted by: Guest on April-01-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language