游戏自动化-向僵尸开炮

v1.0.0

基于OCR的微信小程序游戏脚本,自动开始游戏、智能选技能、循环刷关支持普通关和精英关。

0· 101·0 current·0 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description describe an OCR-based game automation tool. The code (win32helper, rapidocrhelper, GameControl, start scripts) implements window finding, screenshots, OCR, and simulated clicks — all consistent with the claimed purpose.
Instruction Scope
SKILL.md instructs installing Python requirements and running start.py; the source code follows those instructions (taking screenshots into ./cache, calling RapidOCR, clicking via pyautogui). There are no instructions to read unrelated system files, exfiltrate data, or call unexpected remote endpoints.
Install Mechanism
No install script is included; the project relies on pip and a requirements.txt (pywin32, rapidocr, onnxruntime, pyautogui, etc.). These dependencies are proportionate for local OCR and UI automation. A commented paddlepaddle URL appears in comments only; no arbitrary download-and-extract URLs are used.
Credentials
The skill declares no required env vars or credentials. The code does not access environment variables or external secrets. The only external artifact loaded is monsters.json (local) and OCR models loaded by rapidocr/onnxruntime at runtime, which is expected for OCR functionality.
Persistence & Privilege
always is false, the skill does not request permanent platform presence, and it does not modify other skills or systemwide agent settings. It writes local cache and log files (./cache/shot.png, file_{time}.log), which is normal for this sort of tool.
Assessment
This skill appears coherent with its description: it takes screenshots of a specific game window, runs OCR locally, and simulates mouse clicks. Before running, consider: 1) it requires Windows (uses win32 APIs) and will take control of your mouse while running — use a dedicated/isolated session or VM; 2) pip installing rapidocr/onnxruntime may download large models or native binaries — review requirements.txt and install in a virtualenv; 3) confirm you are comfortable with local files being written to ./cache and log files being created; 4) automating a game may violate the game's terms of service — proceed accordingly. If you want extra assurance, inspect requirements and the installed packages (and their network activity) or run the script in an isolated environment before giving it broader access.

Like a lobster shell, security has layers — review code before you run it.

latestvk977kc79w38yycxkvmxhb45j4n83n7hy
101downloads
0stars
1versions
Updated 3w ago
v1.0.0
MIT-0

游戏自动化 - 向僵尸开炮

基于OCR的微信小程序游戏自动化脚本,自动刷关+智能选技能。

功能

  • 自动检测"开始游戏"并点击
  • 自动检测技能弹窗 → OCR识别技能 → 关键词智能选择
  • 自动检测"返回" → 循环刷关
  • 支持普通关/精英关

技能选择逻辑

  1. 优先:技能名称含"连"、"齐"
  2. 其次:技能名称含"子弹"(排除属性弹)
  3. 默认:选择中间技能

使用方法

1. 安装依赖

cd C:\Users\HQY\.openclaw\workspace\skills\game-autogame
pip install -r requirements.txt

2. 运行

python start.py

3. 停止

Ctrl+Q 停止程序

文件说明

文件说明
start.py主入口,循环执行
GameControl.py游戏控制逻辑
rapidocrhelper.pyOCR识别辅助
win32helper.py窗口操作辅助
requirements.txt依赖库

依赖

pywin32
rapidocr
onnxruntime
pyautogui
loguru
keyboard

注意事项

  • 运行时会占用鼠标
  • 需要提前打开微信小程序并选中要刷的关卡
  • 游戏窗口标题必须是"向僵尸开炮"

Comments

Loading comments...