save works

This commit is contained in:
hyb1996 2018-01-29 22:22:37 +08:00
parent 0c042f7f07
commit 8bab1330fd
14 changed files with 14 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,7 +1,7 @@
module.exports = function(__runtime__, scope){
var __selector__ = __runtime__.selector(scope.__engine__);
var __selector__ = __runtime__.selector();
var __obj__ = new java.lang.Object();
for(var method in __selector__){
@ -16,8 +16,7 @@ module.exports = function(__runtime__, scope){
}
return function(){
var s = __runtime__.selector(scope.__engine__);
return s;
return __runtime__.selector();
};
}

View File

@ -1,8 +1,10 @@
package com.stardust.autojs.core.floaty;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.FrameLayout;
import com.stardust.autojs.R;

View File

@ -282,7 +282,7 @@ public class ScriptRuntime {
return ProcessShell.execCommand(cmd, root != 0);
}
public UiSelector selector(ScriptEngine engine) {
public UiSelector selector() {
return new UiSelector(accessibilityBridge);
}

View File

@ -152,7 +152,7 @@ public class Images {
return ImageWrapper.ofBitmap(bitmap);
}
public ImageWrapper decodeBase64(String data){
public ImageWrapper decodeBase64(String data) {
return ImageWrapper.ofBitmap(Drawables.loadData(data));
}
@ -216,10 +216,15 @@ public class Images {
}
org.opencv.core.Point point = TemplateMatching.fastTemplateMatching(src, template.getMat(), TemplateMatching.MATCHING_METHOD_DEFAULT,
weakThreshold, threshold, maxLevel);
if (point != null && rect != null) {
point.x = mScreenMetrics.scaleX((int) (point.x + rect.x));
point.y = mScreenMetrics.scaleX((int) (point.y + rect.y));
if (point != null) {
if (rect != null) {
point.x += rect.x;
point.y += rect.y;
}
point.x = mScreenMetrics.scaleX((int) point.x);
point.y = mScreenMetrics.scaleX((int) point.y);
}
return point;
}