- diagnostics/ 11 个:环境/配置/依赖诊断 - logs/ 7 个:日志分析与查看 - coords/ 6 个:坐标拾取与区域选择 - cleanup/ 3 个:代码清理工具 - adb/ 2 个:ADB / 输入法相关 - windows/ 4 个:Windows 系统修复(备份) - dev/ 9 个:开发辅助 / 运行时探测 并更新 tools/README.md 描述新结构。 删除 3 个明显的临时调试脚本 (_dump_lines.py / tmp_*.py)。 tools/ 不被业务代码 import,分组仅为人工浏览方便。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
586 B
Python
20 lines
586 B
Python
from Underlying_Operations import underlying_operations
|
|
import time
|
|
|
|
op = underlying_operations()
|
|
# try to trigger several screenshots
|
|
for i in range(8):
|
|
print(f"Triggering screenshot #{i+1}")
|
|
ok = op.get_screenshot(device_id="DUMMY_DEVICE", path="pic", use_service=False)
|
|
print("result:", ok)
|
|
time.sleep(0.6)
|
|
|
|
print("\n--- Log snippet ---")
|
|
try:
|
|
with open("logs/screenshot_calls.log", "r", encoding="utf-8") as f:
|
|
lines = f.read().splitlines()
|
|
for ln in lines[-120:]:
|
|
print(ln)
|
|
except Exception as e:
|
|
print("Could not read log:", e)
|