package com.test;
import org.sikuli.script.*;
public class Sikuli {
public static void main(String[] args) throws Exception {
Screen s = new Screen();
Pattern p = new Pattern();
SikuliScript sc =new SikuliScript();
Win32Util app = new Win32Util();
// app.openApp("d:\\fsdaf");
s.doubleClick("D:\\test\\1343790471974.png", 0);
sc.switchApp("Microsoft Excel");
s.type("D:\\test\\1343791933328.png", "aaa");
}
//http://groups.csail.mit.edu/uid/sikuli/index.shtml#
//http://sikuli.org/doc/java-x/
//http://sikuli.org/docx/faq/030-java-dev.html
}
下载并安装sikuli。
需要sikuli-script.jar 可以从sikuli安装文件中找。