logo
0
0
Login
feat: 添加 iPad 和 iPhone 的使用说明及截图流程

Remote Screenshot Tool

This repository contains a Node.js server and a Python Windows client for taking remote screenshots.

Structure:

  • server/ - Node.js + WebSocket server and mobile frontend
  • client/ - Python Windows client that captures screen and sends PNG

Quick start:

  1. Start server:
cd server npm install npm start
  1. On Windows machine, install Python deps and run client:
cd client python -m pip install -r requirements.txt python client.py --server ws://<server-host>:3000 --id mypc
  1. From your mobile phone open http://<server-host>:3000 and tap "Take Screenshot".

iPad / Viewer 使用说明:

  • 打开查看器页面:在 iPad(或其他大屏设备)上访问 http://<server-host>:3000/viewer.html。该页面会作为 viewer 向服务器注册并等待来自客户端的截图。
  • 控制器(iPhone):在 iPhone 上访问 http://<server-host>:3000/(或 index.html),此页面作为 controller 注册,点击“Take Screenshot”将向服务器发送截图请求。
  • 截图流程:
    • controller (iPhone) 发送 request_screenshot 到服务器。
    • 服务器将 take_screenshot 转发给已注册的 Windows 客户端(client/client.py)。
    • Windows 客户端捕获屏幕并发送 screenshot_result(base64 PNG)到服务器。
    • 服务器只将 screenshot_result 转发给注册为 viewer(即 viewer.html)的连接,iPad 会实时显示该截图。

注意事项:

  • 保证 iPad、iPhone 与运行 Windows 客户端的主机都能访问到服务器地址(同一局域网或公网可访问)。
  • 默认使用明文 ws://,若在公网使用请考虑部署 TLS(wss://)并加入认证或配对流程以避免未授权访问。
  • 如果没有真实 Windows 客户端可用,你可以在服务器环境用 client/client.py 做一次模拟测试(但容器/服务器的截图与真实 Windows 屏幕不同)。

About

远程截图工具

Language
HTML40.2%
JavaScript31.8%
Python28%