/*
软件作者:https://xuhss.com/oxox/pro
*/
requestScreenCapture();
var img = captureScreen();
showImage(img);
function showImage(img) {
try {
var Width = device.width,
Height = device.height;
if (context.resources.configuration.orientation == 2) {
Width = device.height;
Height = device.width;
};
sleep(100);
var window1 = floaty.rawWindow(
<frame w="{{Math.floor(device.width*0.7)}}px" h="{{Math.floor(device.height*0.7)}}px"alpha="0.9" gravity="center" bg="#888888">
<img id="img" w="*"alpha="0.9" margin="5" gravity="center"/>
</frame>
);
window1.setPosition(Width, Height);
window1.setTouchable(false);
window1.img.setSource(img);
//window1.img.setAlpha(0.5);
sleep(50);
windowyidong([Width / 2 - window1.getWidth() / 2, Height, Width / 2 - window1.getWidth() / 2, Height * 0.3 - 66], window1, 50);
sleep(2000);
windowyidong([Width / 2 - window1.getWidth() / 2, Height * 0.3 - 66, Width / 2 - window1.getWidth() / 2, Height], window1, 50);
window1.close();
} catch (e) {
toastLog(e)
};
function windowyidong(A, B, C) {
var sx = A[2] - A[0],
sy = A[3] - A[1];
C = C || 75;
var sd = weiyi(sx, sy) / C;
var X = sx / sd,
Y = sy / sd;
var x = 0,
y = 0;
for (var i = 0; i < sd; i++) {
x += X;
y += Y;
sleep(5);
B.setPosition(A[0] + x, A[1] + y);
}
B.setPosition(A[2], A[3]);
};
function weiyi() {
var num = 0;
for (var i = 0; i < arguments.length; i++) {
num += arguments[i] * arguments[i];
}
return Math.round(Math.sqrt(num) * 1000) / 1000
};
};
没有合适的资源?快使用搜索试试~ 我知道了~
AutoJs源码-展示图片
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共1个文件
js:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 7 0 下载量 184 浏览量
2022-11-15
14:59:51
上传
评论
收藏 926B 7Z 举报
温馨提示
AutoJs源码-展示图片。本资源购买前提醒:本源码都是实际autojs项目模板,安装好autojs直接运行即可打开。1、支持低版本autojs。2、资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!。3、安装过程详见具体资源,不会使用autojs谨慎下载
资源推荐
资源详情
资源评论
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 1 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
[虚幻私塾】
- 粉丝: 335
- 资源: 1559
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)