自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(104)
  • 收藏
  • 关注

原创 工具 canvas 画时钟表

自己写的工具,代码和Auto.js有差异。

2024-02-12 12:46:56 424

原创 Auto.js 顶部导航栏 侧边栏

【代码】Auto.js 顶部导航栏 侧边栏。

2023-12-03 13:02:45 547

原创 Autox.js和Auto.js4.1.1手机编辑器不好用我自己写了一个编辑器

功能有 撤销 重做 格式化 跳转关键词。

2023-11-19 17:56:02 1386

原创 Auto.js 填充布局 layout_weight=“1“

我通过使用layout_weight="1"完美解决我的问题,在这里记录一下。顶部和底部有按钮,而中间部分需要填满剩余空间且高度未知。QQ群 647162429。

2023-07-13 09:57:35 416

原创 AIDE android11 接收 QQ 其他方法打开文件

注意 targetSdkVersion 是 29。不是说修改27修改29就行。QQ群 647162429。

2023-07-03 07:24:18 560

原创 Auto.js vscode编辑时候输入soast()的时候会出现错误补全解决方法

在这里插入图片描述](https://img-blog.csdnimg.cn/4c3872d0635b4c5fa03e138029259e15.png。输入关键词搜索 取消下面这个勾选。

2023-04-04 13:25:36 235 1

原创 AIDE 练字

【代码】AIDE 练字。

2023-03-25 17:46:58 114

原创 Auto.js 简单模仿 扇形悬浮

【代码】Auto.js 简单模仿 扇形悬浮。

2023-03-24 15:43:48 461 1

原创 Auto.js 自定义 类

【代码】Auto.js 自定义 类。

2023-03-22 20:25:12 405

原创 AIDE 两个手机通讯

public class SocketServer{ private ServerSocket server; private Socket socket; private InputStream in; private String str=null; private boolean isClint=false; public static Handler ServerHandler; /** * @steps bind();绑定端口

2023-02-27 18:55:15 211

原创 Auto.js 使用java类

//删除文件file = new File("/sdcard/未命名.txt");file.delete();log("完成")像这个代码运行会报错解决方法如下点击 搜索java包/类输入报错 关键词 File,点击第二个 java.io.File再点击 import 使用这个类代码就会 多一行importClass(java.io.File);//删除文件file = new File("/sdcard/未命名.txt");file.delete();log("完成"

2023-01-03 11:51:29 1735 2

原创 精简 计算 谁还可以减少代码

手点击 个位 零"ui";ui.layout( <vertical> <horizontal> <text text="万"textSize="25"margin="10"/> <text text="千"textSize="25"margin="10"/> <text text="百"textSize="25"margin="10"/> <text tex

2023-01-01 16:48:08 328

原创 Auto.js UI 列表控件使用方法 数字题计算

"ui";ui.layout( <vertical> <horizontal> <button id="设置"text="设置"/> <input id="数字"text="100"w="100dp"/> <text text="内加减法"textSize="25"/> </horizontal> <l

2022-12-13 12:19:21 1007

原创 Auto.js java布局 转 UI 布局,自己定义uii.layout()

importClass(android.widget.Button);importClass(android.widget.LinearLayout);importClass(android.content.DialogInterface);importClass(android.graphics.Color);uii={ layout:function (xml){ var bj=xml.toString().split("\n") var 主布局 = new Li

2022-12-03 12:50:14 1691

原创 Auto.js Intent 意图跳转 地图

importClass(android.net.Uri);importClass(android.content.Intent);uri2 = Uri.parse("geo:39.9,116.4");it2 = new Intent(Intent.ACTION_VIEW, uri2);app.startActivity(it2);

2022-11-29 13:01:44 991

原创 Auto.js 压缩 解压 加密文件

log("加密="+加密())log("解密="+解压())function 加密() { try { let dir = '/sdcard/脚本/模块/'; // 2.加密压缩文件夹 let encryptedZipFile = '/sdcard/项目.zip'; $files.remove(encryptedZipFile); $zip.zipDir(dir, encryptedZipFile, {

2022-11-15 13:23:50 1514

原创 Auto.js 找图 找色 剪切图片 坐标区域计算方法

2022-11-08 10:59:03 1256

原创 Auto.js 使用java线程

importClass(android.widget.Toast);importClass(java.lang.Runnable)importClass(java.lang.Thread)Toast.makeText(context, "开始运行", 0).show();var th =new Thread(new Runnable() { run: function() { for(var i=0;i<10;i++){ log(i) ne

2022-11-08 09:01:00 1457 1

原创 Auto.js 通知读取权限 两种方法

"ui";runtime.loadDex("模块/android.dex")ui.layout( <horizontal> <button id="跳转"text="跳转"/> <Switch id="通知" text="通知读取权限" checked="{{通知()}}"textSize="15sp"/> </horizontal>);ui.跳转.click(() => { app.sta

2022-09-28 18:20:57 2045 1

原创 Auto.js 自定义 调用外部字体

"ui";ui.layout( <vertical> <input id="输入框"text="123,字体.asd."textSize="35"/> </vertical>);ui.run(() => { 字体 = android.graphics.Typeface.createFromFile("/sdcard/脚本/模块/MiSans-Thin.ttf"); ui.输入框.setTypeface(字体)}

2022-09-27 20:06:46 704

原创 Auto.js 9版本 OCR 文字识别

// 创建OCR对象,需要先在Auto.js Pro的插件商店中下载官方OCR插件。let ocr = $ocr.create({ models: 'slim', // 指定精度相对低但速度更快的模型,若不指定则为default模型,精度高一点但速度慢一点});requestScreenCapture(); let capture =captureScreen(); capture=images.clip(capture,0,0,300,300)//let capture = im

2022-09-25 09:44:38 5113

原创 Auto.js 9版本全分辨率找图

// 读取小图let hellokitty = $images.read('./hellokitty.jpg');// 计算小图特征let objectFeatures = $images.detectAndComputeFeatures(hellokitty);// 请求截图权限requestScreenCapture();// 打开HelloKitty图片$app.openUrl('https://m.duitang.com/blog/?id=692391581')let n = 3

2022-09-19 19:41:50 2586 2

原创 Auto.js 获取文件最后修改时间戳

var 路径=files.getSdcardPath()文本=java.io.File(路径+"/笔记/其他.txt")log(文本.lastModified());//获取最近修改时间戳

2022-09-11 14:39:24 984

原创 Node.js UI界面 输入框

"ui";//调用android类require('rhino').install();const Snackbar = com.google.android.material.snackbar.Snackbar;//调用模块const ui = require('ui');const app = require('app');const { showConfirmDialog} = require('dialogs');class MainActivity extends ui

2022-09-11 12:46:35 1397 1

原创 node.js 第一个UI界面按钮

"ui";require('rhino').install();const MenuItem = android.view.MenuItem;const Snackbar = com.google.android.material.snackbar.Snackbar;const ui = require('ui');const app = require('app');const { showConfirmDialog} = require('dialogs');class

2022-09-10 10:07:29 1396

原创 Auto.js 画布文字位置

"ui";importClass(android.graphics.Paint);importClass(android.graphics.Typeface);//ui布局为一块画布和一些函数调整控件ui.layout( <vertical> <canvas id="board" w="*" h="*"/> </vertical>);//画笔var paint = new Paint();paint.setStrokeWi

2022-09-08 21:17:29 778

原创 AIDE 自定义 编辑器

xeditText.javapackage com.mycompany.myapp;import android.widget.EditText;import android.content.Context;import android.util.AttributeSet;import android.view.View.OnKeyListener;import android.view.KeyEvent;import android.util.Log;import android.vie

2022-09-03 11:17:03 1022

原创 Auto.js toast自定义

importClass(android.view.Gravity);importClass(android.widget.Toast);/*//显示两秒Toast.makeText(context, "hello world", Toast.LENGTH_SHORT).show();//显示3.5秒Toast.makeText(context, "hello world", Toast.LENGTH_LONG).show();*/t = Toast.makeText(context,"默认"

2022-08-17 13:52:26 1494

原创 Auto.js 画布canvas

"ui";importClass(android.graphics.Color);ui.layout( <vertical> <canvas id="board" w="*" h="*"/> </vertical>);var paint = new Paint();paint.setStrokeWidth(2);paint.setColor(Color.parseColor("#ffffff"));ui.board.on("d

2022-08-15 19:22:38 1588 1

原创 Auto.js 如何把图片和脚本一起打包,或者打包多个脚本

如果除了单脚本以外还有其他脚本、图片、音乐等资源一起打包,则需要使用项目功能。点击Auto.js的右下角"+"号,选择项目,填写项目名称、包名等信息以后,点击"√"即可新建一个项目。可以在项目中放多个脚本、模块、资源文件,点击项目工具栏的apk打包图标即可打包一个项目,点击工具栏可以重新配置项目。例如,主脚本要读取同一文件夹下的图片1.png,再执行找图,则可以通过images.read("./1.png")来读取,其中"./1.png"表示同一目录1.png图片;ui中的图片控件要引用同一文件夹的2.

2022-08-04 19:13:05 3553

原创 Auto.js 找图防止泄漏

"ui";ui.layout( <vertical> <button id="开始"text="开始"/> </vertical>);threads.start(function(){ requestScreenCapture(); })ui.开始.click((a) => { if (a.text() == "开始") { a.setText("结束") //开线程

2022-07-30 11:57:25 1347

原创 Auto.js 旋转图标

"ui";importClass(android.animation.ObjectAnimator);ui.layout( <vertical> <img id="图片"src="@drawable/ic_loop_black_48dp" h="80" margin="12" bg="?selectableItemBackgroundBorderless"/> </vertical>);ui.图片.click(() => .

2022-07-25 09:52:22 505

原创 AIDE 列表

activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ListView android:id="@+id.

2022-07-12 16:41:13 459

原创 Auto.js 获取手机所有app名字

intent = new Intent();intent.setAction(Intent.ACTION_MAIN);intent.addCategory(Intent.CATEGORY_LAUNCHER);packageManager = context.getPackageManager();resolveInfos = packageManager.queryIntentActivities(intent, 0);for(var i=0;i<resolveInfos.size();i.

2022-07-03 21:25:39 1884

原创 Auto.js 悬浮窗居中 gravity=“center“

fx = device.width;fy = device.height;window = floaty.rawWindow( <frame> <linear id="线布局"w="{{fx}}px"h="{{fy}}px"gravity="center"bg="#88000000"> <vertical bg="#ffffff"> <horizontal> .

2022-06-12 19:38:05 1024

原创 Node.js 多点找色

"nodejs";const { requestScreenCapture } = require('media_projection');const image = require('image');const { findColor, findColorSync, findMultiColors, findMultiColorsSync } = image;const { delay } = require('lang');const { Color } = require('color');

2022-06-01 18:51:59 844

原创 Auto.js 意图跳转系统大全

var intent = new Intent();//intent.setAction("android.net.vpn.SETTINGS"); //添加VPN网络//intent.setAction("android.settings.ACCESSIBILITY_SETTINGS"); //无障碍//intent.setAction("android.settings.ADD_ACCOUNT_SETTINGS"); //添加账户//intent.setAction("android.settin

2022-05-27 12:21:06 2503

原创 Auto.js 下拉框 修改

'ui';ui.layout( <vertical> <spinner id="下拉框" entries="选项1|选项2|选项3"h="50"/> <horizontal> <button id="确认选项"text="确认选项"/> <button id="修改下拉框"text="修改下拉框"/> </horizontal>

2022-05-20 21:47:32 1544

原创 Auto.js 悬浮 下拉框

var win = floaty.rawWindow( <frame> <spinner h="55" id="下拉框" spinnerMode="dropdown" entries="选项1|选项2|选项3"/> </frame>)setInterval(() => {}, 1000);QQ群 568523841QQ群 647162429

2022-05-19 20:32:07 773

原创 Auto.js 自定义 编辑器

"ui";runtime.loadJar("classes.jar")ui.layout( <vertical> <com.yanxi.chajian.EditTextView id="编辑器"w="*"h="*"/> </vertical>);视频演示自定义 编辑器QQ群 568523841

2022-05-14 09:32:34 395

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除