ok-script
基于计算机视觉的 Python 自动化框架,面向 Windows 应用、Windows 游戏、安卓模拟器和 ADB 设备。
ok-script 提供 UI、截图与输入、设备控制、OCR、模板匹配、调试浮层、自动化测试、打包和增量更新能力。它使用 COCO 格式管理模板素材,并支持分辨率自适应与多语言界面。
特性
- 纯 Python 实现,免费开源,可直接使用 pip 生态中的第三方库
- 同一套任务代码可支持 Windows 客户端、安卓模拟器和 ADB 设备
- 支持 OCR、OpenCV 模板匹配以及 YOLO 等视觉方案
- 基于 COCO 标注管理模板素材,并根据屏幕分辨率自动缩放
- 内置截图、输入、设备控制和可视化调试工具
- 支持自动化测试、GitHub Actions 构建和安装包发布
- 支持多语言国际化和在线增量更新
快速安装
ok-script 支持 Python 3.11 及以上版本,推荐使用 Python 3.12。
python -m pip install ok-script
如果要创建完整的自动化项目,建议从 ok-script-app 模板开始,而不是直接在本仓库中编写业务脚本。
文档
从文档中心选择适合你的阅读路径:
想先体验完整工具链,也可以使用基于 ok-script 的按键精灵项目 ok-py。
界面预览
| 任务配置 | 截图与交互 |
|---|---|
| 脚本与 API | 模板管理 |
|---|---|
查看界面与开发工具完整说明,包括模板识别调试浮层。
使用 ok-script 的项目
社区与发布
许可证
本项目采用 AGPL-3.0 许可证。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ok_script-1.0.185.tar.gz.
File metadata
- Download URL: ok_script-1.0.185.tar.gz
- Upload date:
- Size: 658.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64646541b02da6d4ac07f96f22d9c51447290cc5e81291a636006d60c8447a05
|
|
| MD5 |
a19a495af48e951c8e592eb66f596a6c
|
|
| BLAKE2b-256 |
018b30ff85090848d62be1233f48abebe3098af904795bf19b709e4e536de6a3
|
File details
Details for the file ok_script-1.0.185-py3-none-any.whl.
File metadata
- Download URL: ok_script-1.0.185-py3-none-any.whl
- Upload date:
- Size: 730.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4a3828f9c63ff48d0dd35553921aa0c10c423ab2afa457e704ae8bbb7c95803
|
|
| MD5 |
d5eecd2063d7db4e670ff2b9b799fe59
|
|
| BLAKE2b-256 |
2d32fb63a713f8cbd45a835b3841e279448a05b4d6ecdd9204c71a0c8779bded
|