A lightweight Flask application to live-stream your desktop, and remotely control mouse and keyboard from any browser.
Supports:
- 🖼️ Live screen streaming (MJPEG)
- 🖱️ Mouse clicks and dragging
- ⌨️ Keyboard input
- 🎛️ Adjustable stream quality
- 🎯 Accurate screen-to-browser coordinate mapping
- 📏 Responsive UI (screen scales to fit browser)
| Feature | Description |
|---|---|
| ✅ Live stream | Real-time screen feed over HTTP |
| ✅ Mouse control | Click and drag anywhere from browser |
| ✅ Keyboard control | Type keystrokes remotely |
| ✅ Quality control | Switch stream compression on-the-fly |
| ✅ FPS counter | Shows current frame rate in browser |
| ✅ Responsive UI | Image auto-scales to browser size |
- Python 3.7+
- GUI-enabled Linux (X11), macOS, or Windows
pip installthe following:
pip install flask opencv-python-headless pyautogui msspython app.pyThen open:
http://<your-ip>:8000Replace with your local IP address if accessing from another device.
一个轻量级的 Flask 应用,可通过浏览器实时显示你的桌面画面,并远程控制鼠标和键盘。
支持功能:
- 🖼️ 实时桌面串流(MJPEG)
- 🖱️ 鼠标点击与拖拽
- ⌨️ 键盘输入
- 🎛️ 可调节串流画质
- 🎯 精确的屏幕与浏览器坐标映射
- 📏 响应式界面(画面自动缩放以适应浏览器)
| 功能 | 说明 |
|---|---|
| ✅ 实时串流 | 通过 HTTP 提供实时桌面画面 |
| ✅ 鼠标控制 | 可直接在浏览器中点击和拖拽操作 |
| ✅ 键盘控制 | 支持远程输入键盘按键 |
| ✅ 画质调节 | 可动态切换串流压缩质量 |
| ✅ FPS 显示 | 浏览器中实时显示当前帧率 |
| ✅ 响应式界面 | 画面自动缩放以适应不同浏览器尺寸 |
- Python 3.7 或更高版本
- 支持 GUI 的 Linux(X11)、macOS 或 Windows
- 使用
pip安装以下依赖:
pip install flask opencv-python-headless pyautogui msspython app.py然后在浏览器中打开:
http://<your-ip>:8000
如果从其他设备访问,请将 <your-ip> 替换为本机的局域网 IP 地址。
