上传备份

wjdr
王兵 1 year ago
parent f9c939c257
commit 496334a3a3

@ -872,6 +872,15 @@ public abstract class JMacro {
return Convert.toBool(result, false);
}
/**
*
*
* @return
*/
public Legend of(String legend) {
return Legend.inflate(legend);
}
/**
*
*

@ -1,6 +1,6 @@
package com.example.jmacro.wjdr;
import com.example.jmacro.wjdr.base.ViewPoint;
import com.example.jmacro.wjdr.base.Legend;
import com.example.jmacro.wjdr.base.ViewRect;
import com.example.jmacro.wjdr.ui.FXMLUtil;
import com.example.jmacro.wjdr.util.Logger;
@ -70,13 +70,21 @@ public class JMainApplication extends Application {
JMainService.init(new JMacro() {
@Override
public ViewRect focus() {
return new ViewRect(0, 0, 500, 500);
return new ViewRect(0, 0, 1920, 1080);
}
@Override
public void run() {
findLegend(of(0,0,159,168), "电脑", 0.99);
findLegend(of(100,100,200,200), "电脑2", 0.99);
ViewRect = findLegend(of(0, 0, 159, 168), "电脑", 0.99);
if ( == null) {
return;
}
mouseLeftDoubleClick();
ViewRect = waitAndFindLegend(of("关闭"), 0.99, 10);
if ( == null) {
return;
}
mouseLeftClick();
}
}, new File("legend"));
}

Loading…
Cancel
Save

Powered by TurnKey Linux.