Robot roby = new Robot();
roby.mouseMove(300, 200);
roby.waitForIdle();
roby.mousePress(InputEvent.BUTTON1_MASK);
roby.waitForIdle();
roby.mouseRelease(InputEvent.BUTTON1_MASK);
roby.waitForIdle();
roby.keyPress(KeyEvent.VK_H);
roby.waitForIdle();
roby.keyRelease(KeyEvent.VK_H);