I'm trying to build some robot class in JAVA.
I need to robot hold 3 keys at the same time -> (CTRL + SHIFT + DELETE)
I have to achieve this beacuse this accelerator opens a new windows and saves a lot of time.
Here is my code below:
Robot robot = new Robot();
robot.keyPress(InputEvent.CTRL_MASK);
robot.delay(100);
robot.keyPress(InputEvent.SHIFT_MASK);
robot.delay(150);
robot.keyPress(KeyEvent.VK_DELETE);
robot.keyRelease(KeyEvent.VK_DELETE);
robot.keyRelease(InputEvent.SHIFT_MASK);
robot.keyRelease(InputEvent.CTRL_MASK);