ok-script
ok-script-kes
ok-script-kes 是 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-kes
如果要创建完整的自动化项目,建议从 ok-script-app 模板开始,而不是直接在本仓库中编写业务脚本。
文档
从文档中心选择适合你的阅读路径:
想先体验完整工具链,也可以使用基于 ok-script 的按键精灵项目 ok-py。
界面预览
| 任务配置 | 截图与交互 |
|---|---|
| 脚本与 API | 模板管理 |
|---|---|
查看界面与开发工具完整说明,包括模板识别调试浮层。
使用 ok-script 的项目
社区与发布
许可证
本项目采用 AGPL-3.0 许可证。
Metadata
Release files for ok-script-kes 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ok_script_kes-1.0.3.tar.gz | 742.5 kB | Without provenance | Details for ok_script_kes-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ok_script_kes-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for ok_script_kes-1.0.3-py3-none-any.whl |
Total release size: 1.5 MB
Release files / ok_script_kes-1.0.3.tar.gz
| Download URL | ok_script_kes-1.0.3.tar.gz |
|---|---|
| Size | 742.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbd1710354ba72e980b506e821d08ee5fe9244d99cbd8e397f42d93faf3fa2cb
|
|
BLAKE2b-256 checksum How to use checksums |
c459279d0bc66c789fbecf38fb3cd1cbb45b538e4cf0cb03815a5b9d92f181fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / ok_script_kes-1.0.3-py3-none-any.whl
| Download URL | ok_script_kes-1.0.3-py3-none-any.whl |
|---|---|
| Size | 785.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
923b7ddeb7664b33005a172d8294da46d9bb3367437b76235079c62025579cec
|
|
BLAKE2b-256 checksum How to use checksums |
9d7118f3a038af72e5c6e654eea296f0802799a251eb8868110307aef8a636cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for ok-script-kes 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.