|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package com.example.jmacro.wjdr;
|
|
|
|
|
|
|
|
|
|
import com.example.jmacro.wjdr.base.ViewRect;
|
|
|
|
|
import com.example.jmacro.wjdr.demo.MacroForWJDR;
|
|
|
|
|
import com.example.jmacro.wjdr.ui.FXMLUtil;
|
|
|
|
|
import com.example.jmacro.wjdr.util.Logger;
|
|
|
|
|
import com.example.jmacro.wjdr.util.ResourceUtil;
|
|
|
|
@ -66,20 +66,7 @@ public class JMainApplication extends Application {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 服务初始化
|
|
|
|
|
JMainService.init(new JMacro() {
|
|
|
|
|
@Override
|
|
|
|
|
public ViewRect focus() {
|
|
|
|
|
return new ViewRect(0, 0, 1920, 1080);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
ViewRect pic = matchLegend("xinxin", 0.9);
|
|
|
|
|
if (pic != null) {
|
|
|
|
|
mouseLeftDoubleClick(pic);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, new File("legend"));
|
|
|
|
|
JMainService.init(new MacroForWJDR(), new File("legend"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|