Guest User

Untitled

a guest
Sep 15th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. package sikuli2;
  2.  
  3. import org.sikuli.script.*;
  4.  
  5. public class Sikuli2 {
  6.  
  7. public static void main(String[] args) {
  8. Screen s = new Screen();
  9. try{
  10. s.click("imgs/a.png", 0);
  11. s.wait("imgs/a1.png");
  12. s.type(null, "hello world\n", 0);
  13. }
  14. catch(FindFailed e){
  15. e.printStackTrace();
  16. }
  17.  
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment