// synthetic native gui events import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.awt.Robot; ... Robot r = new Robot(); r.mouseMove( 100, 100 ); r.keyPress( KeyEvent.VK_A ); r.mousePress( InputEvent.BUTTON1_MASK );