Skip to main content

零动AS插件提示包

Project description

  1. 每个API都配有中文、英文两种使用方法,开发者可根据自己喜好随意选择
  2. 每个API都配备了详细的开发文档以及视频形式的讲解,以确保开发者可以完全学会使用
  3. 除插件的开发文档外,我们集成了常用工具、公开课、AS-FAQ等多项功能,让开发者从此告别东拼西凑 文档地址:https://www.yuque.com/xianle-skqwj/ld

升级日志:

1.1.8

  • 新增谷歌OCR识别,该函数是调用官网的谷歌OCR,可能程序会崩溃
elements = {
    "任务": {
        "OCR_Mlkit": OcrQuery().mlkitocr_v2().text("系统应用").rect_center()
    }
}
ld.元素_操作("任务1", "OCR_Mlkit").点击_坐标().执行()

# 此外也可以直接识别屏幕某个区域文字
print(ld.文字识别_MlkitV2([85, 1088, 250, 1142]))
  • 点击滑动相关函数支持百分比坐标
# 直接使用如下
ld.滑动(["50%", "40%"], ["50%", "60%"])

ld.点击_坐标("50%", "50%")

# 也可以在链式中使用,滑动一样,这里不再过多演示
ld.元素_操作("任务1", "找图_游戏中心").点击_坐标("50%", "50%").随机_延迟(2).执行()

1.1.7

  • 修复元素_等待函数失效问题

1.1.6

  • 新增找图/找色/找字支持屏幕区域,以下以找图为例:
elements = {
    "任务1": {
        "找图_游戏中心": ImageQuery().find().img("yxzx.png").rect_center()
    },
}
# 以上的rect_center()代表找屏幕中心位置,除此之外还支持
# rect_left_top() - 获取右上角范围
# rect_left_top() - 获取左上角范围
# rect_left_bottom() - 获取左下角范围
# rect_right_bottom() - 获取右下角范围
# rect_half_left() - 获取左半屏范围
# rect_half_right() - 获取右半屏范围
# rect_half_top() - 获取上半屏范围
# rect_half_bottom() - 获取下半屏范围

1.1.5

  • 新增统计运行时间日志
# 只需要设置系统日志级别即可
ld.日志_设置级别(LogLevel.INFO)
  • 新增随机延迟函数
 ld.随机_延迟(second, float_tame)
  • 新增设备相关函数
ld.获取_设备ID()
ld.获取_设备名称()
ld.获取_设备屏幕信息()
ld.获取_设备品牌()
ld.获取_设备型号()
ld.获取_设备SDK()
ld.获取_设备IP()
ld.获取_当前运行APP信息()
ld.获取_所有安装APP()
ld.获取_当前电量()
ld.获取_设备内存()

1.1.4

  • 新增找图函数可以增加多图片
elements = {
    "测试任务": {
        "多图测试": ImageQuery().find_template().img("小工具-谷歌安装器.png", "小工具-RE文件管理器.png",
                                                     "小工具-主题装扮.png"),
    }
}
  • 新增字符串函数可以统计字符出现个数
print(文本.字符出现次数("abcabcabc", "ab"))

升级方法

1.AS当中引用代码为:

plug.load("ld:1.1.4")

2.更新提示包插件:

pip install --upgrade ld-as-framework

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ld_as_framework-1.1.8.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

ld_as_framework-1.1.8-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file ld_as_framework-1.1.8.tar.gz.

File metadata

  • Download URL: ld_as_framework-1.1.8.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for ld_as_framework-1.1.8.tar.gz
Algorithm Hash digest
SHA256 8e620bea92131f2d51fcae9b023f4e8c1f610d2f6725f7d045c20194cbfcb9a2
MD5 a44e3cca4d22643ece1ee2803fb7b6bc
BLAKE2b-256 df60e1292be0a8634b3d2678d3b9490d80306524707d2f9488ac5dd588d3f8fa

See more details on using hashes here.

File details

Details for the file ld_as_framework-1.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for ld_as_framework-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1df18456054cf96b55cb31d0dba0589ae75103f75c62b533be4b4ec4a8eedbc2
MD5 a88c7171efabf52ff6a42b6d3f1acbe3
BLAKE2b-256 d404ee8525d0913e38fcff3252d6fbb0a98fc870ef467bbca5af00aa712a6349

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page