import org.sikuli.script.*; public class TestSikuli { public static void main(String[] args) { Screen s = new Screen(); try{ synchronized(s){ //s.click("imgs/spotlight.png", 0); //s.wait("imgs/spotlight-input.png"); //s.type(null, "hello world\n", 0); s.click("helloworld.sikuli\\1422978936388.png") s.wait(1000) s.type('cmd') s.type(Key.ENTER) s.wait(1000) s.type('echo Hello, world!') s.type(Key.ENTER) //s.type('pause') //s.type(Key.ENTER) s.wait(5000) s.type('exit') s.type(Key.ENTER) } } catch(FindFailed e){ e.printStackTrace(); } } } //type(Key.ENTER)