save works
BIN
app/src/main/assets/docs/images/ex-gravity.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
app/src/main/assets/docs/images/ex-layout-gravity.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/assets/docs/images/ex-marginLeft.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/assets/docs/images/ex-padding.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
app/src/main/assets/docs/images/ex-properties.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/assets/docs/images/ex-w.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/assets/docs/images/ex1-horizontal.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
app/src/main/assets/docs/images/ex1-margin.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/assets/docs/images/ex1.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
app/src/main/assets/docs/images/ex2-margin.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||