Skip to content

Commit 741f554

Browse files
committed
1.6.0
Capture插件! 截图利器,告别手搓640x640 MYScrcpy: 1.全新Extensions架构,支持ZIP引入,支持配置注入,新增插件管理界面 2.升级键盘控制器、鼠标控制器 3.升级值管理器 4.新增日志管理器 5.修复调整大小窗口抖动缺陷,修复DPG崩溃缺陷
1 parent 998095f commit 741f554

35 files changed

+3924
-826
lines changed

MANIFEST.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include README_EN.md
22

33
prune src/myscrcpy/test_zone
4+
prune src/myscrcpy/tools/webrtc
45
graft src/myscrcpy/static
5-
graft src/myscrcpy/libs
6+
graft src/myscrcpy/libs
7+
graft src/myscrcpy/extensions

README.md

+64-36
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# MYScrcpy V1.5.10
2-
3-
---
1+
# MYScrcpy V1.6.0
42

53
### [README in English](https://github.com/me2sy/MYScrcpy/blob/main/README_EN.md)
64

@@ -12,23 +10,38 @@
1210

1311
### :tv: 视频简介 [BiliBili](https://www.bilibili.com/video/BV1DxWKeXEyA/)
1412

15-
![dpg Screenshot](/files/images/mys_1_3_4.jpg)
13+
![dpg Screenshot](https://github.com/me2sy/MYScrcpy/blob/main/files/images/mys_1_3_4.jpg)
1614

1715
## 功能特性
1816

19-
---
17+
### 插件
18+
- **1.6.0** Capture 截图助手 (告别苦苦手拉640x640训练图)
19+
- 获取屏幕坐标、定位十字线
20+
- 自定义截图框尺寸、原始或所见所截模式
21+
- C键截图、X键锁定截图框位置 Q关闭功能
22+
- 截取设备1:1实际图形,保持高清晰度
23+
- 截图历史预览、自定义保存格式、批量保存
24+
- 支持放大镜模式
25+
- 支持自定义十字线颜色、随机颜色,粗细等,更加醒目
26+
- ![Capture](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/extensions/capture/img_1.jpg)
27+
2028

2129
### 开发
22-
- **1.5.10 NEW** 支持自行开发扩展插件 [**帮助文档**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/extensions/Help_extensions_v1.md)
23-
- **1.5.8 NEW** 支持获取视频、音频原格式流,方便二次开发
30+
- **1.6.0 NEW** 全新插件架构!支持配置文件注入等功能 [**帮助文档**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/extensions/Help_extensions_v1_6.md)
31+
- **1.6.0 NEW** 升级KVManager ValueManager,自动注册,自动管理
32+
- **1.6.0 NEW** 整合[uiautomator2](https://github.com/openatx/uiautomator2)
33+
- ~~支持自行开发扩展插件 [**帮助文档**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/extensions/Help_extensions_v1.md)~~
34+
- 支持获取视频、音频原格式流,方便二次开发
2435
- 开箱即用 `pip install mysc[full]`
2536
- 使用Session/Connection/Adapter/Args架构,一行代码获取图像
2637
- `Session(adb_device, video_args=VideoArgs(1200)).va.get_image()`
2738
- 按需最小化引用。支持**Termux**上安装部署服务,支持局域网WEB浏览,[**安装部署教程**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/MYScrcpy_with_Termux.md)
2839

2940
### GUI
30-
- **1.5.9 NEW** 新增文件管理器,支持设备文件管理,下载、上传及预览 [**帮助文档**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/file_manager/Help_file_manager.md)
31-
- **1.5.8 NEW** 支持Windows系统下,文件传输功能
41+
- **1.6.0 NEW** 新增插件管理器,管理插件、自定义配置等
42+
- **1.6.0 NEW** 新增底部提示及日志栏,信息及时提醒,同时提供日志查看功能
43+
- 文件管理器,支持设备文件管理,下载、上传及预览 [**帮助文档**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/file_manager/Help_file_manager.md)
44+
- 支持Windows系统下,文件传输功能
3245
- 使用右键手势 下|上 快速拷贝
3346
- 也可使用 VAC -> Control -> CopyToDevice 使用
3447
- 先选中PC中文件或文件夹(支持多选),在MYScrcpy界面绘制拷贝手势,则拷贝选中文件/文件夹至设备 /sdcard/MYScrcpy/ 文件夹下
@@ -52,15 +65,21 @@
5265
- 拉动窗口,进行自由伸缩
5366
- 根据高度/宽度,自动调整窗口至视频比例
5467
- 支持虚拟摄像头
55-
- **1.5.7 NEW** **命令行启动 mysc-t-vc** [**帮助文档**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/Help_tools_vc_v1.md)
68+
- 命令行启动 mysc-t-vc [**帮助文档**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/Help_tools_vc_v1.md)
5669
- 随时开启,随时关闭,随时切换设备
5770
- 支持OBS虚拟摄像头/Unity Capture(windows)/v4l2loopback
5871

5972
### 音频
60-
- 支持**opus (1.5.3 NEW)**/flac/raw
73+
- 支持opus/flac/raw
6174
- 支持切换声音输出设备,可配合VB-Cables模拟麦克风输入
6275

6376
### 控制
77+
- **1.6.0 NEW** 优化鼠标控制器
78+
- 支持手势切换功能空间 手势:DR
79+
- 支持插件配置注入
80+
- **1.6.0 NEW** 新增键盘切换器
81+
- 使用 F12 切换 UHID/ADB/Ctrl模式, F11 切换 控制空间
82+
- 支持插件配置注入
6483
- 按键映射创建工具(TPEditor),支持键盘,鼠标等多种控制映射方式,Windows/Linux 适用
6584
- 支持UHID鼠标,可以实现Android界面中鼠标与PC混用
6685
- 支持UHID-Keyboard,模拟外接键盘,直接输入中文(百度、搜狗输入法测试通过)
@@ -72,9 +91,19 @@
7291
- 特殊场景下,支持ctrl调节鼠标移动速度功能
7392
- 侧边栏多种功能键
7493

75-
## 基本使用
94+
## 帮助与支持
95+
96+
在使用中有任何问题、想法及建议,欢迎通过以下方式与我联系:
97+
98+
#### QQ群:579618095
99+
![579618095](https://github.com/me2sy/MYScrcpy/blob/main/files/images/qq_group.jpg)
76100

77-
---
101+
#### 邮箱:Me2sY@outlook.com
102+
103+
#### Blog: [CSDN](https://blog.csdn.net/weixin_43463913)
104+
105+
106+
## 基本使用
78107

79108
### 1.1 pypi直接安装使用(推荐)
80109
```bash
@@ -228,25 +257,23 @@ python -m myscrcpy.gui.ng.main
228257

229258
## 程序截图
230259

231-
---
232-
233260
### 主界面
234261
![dpg Screenshot](/files/images/myscrcpy_1_3_0_main.jpg)
235262

236263
### 右键手势功能
237264
![right](/files/images/myscrcpy_1_4_2_g.jpg)
238265

239-
### Nicegui Web 界面 **NEW 1.3.6**(DEMO)
266+
### Nicegui Web 界面(DEMO)
240267
![Nicegui Demo](/files/images/Nicegui_DEMO.jpg)
241268

242269
### 按键映射编辑器
243270
![Touch Proxy Editor](/files/images/edit_touch_proxy.jpg)
244271

272+
### 插件管理器
273+
![img_1.png](/files/images/myscrcpy_1_6_0.png)
245274

246275
## 所思所想
247276

248-
---
249-
250277
作为从 Scrcpy 1.X时代就开始使用的老玩家,感叹于Scrcpy的发展及神奇的功能的同时,也一直想做点什么。不过碍于有其他项目(~~~~)一直迟迟没有动手。
251278
直到遇到了[Scrcpy Mask](https://github.com/AkiChase/scrcpy-mask) 这一优秀项目,感觉我也要做点什么了。
252279

@@ -265,38 +292,42 @@ MYScrcpy是MY(Mxx & ysY)系列的开始,接下来,将继续开发完善
265292

266293
## 鸣谢
267294

268-
---
269-
270295
感谢 [**Scrcpy**](https://github.com/Genymobile/scrcpy/) 项目及作者 [**rom1v**](https://github.com/rom1v),在这一优秀项目基础上,才有了本项目。
271296

272297
感谢使用到的各个包项目及作者们。有你们的付出,才有了如此好的软件开发环境。
273298

274299
同时感谢各位使用者们,谢谢你们的支持与帮助,也希望MYScrcpy成为你们得心应手的好工具,好帮手。
275300

276-
## 声明
277301

278-
---
302+
## 声明
279303

280304
本项目供日常学习(图形、声音、AI训练等)、Android测试、开发等使用。
305+
281306
**请一定注意:**
282307

283308
1.开启手机调试模式存在一定风险,可能会造成数据泄露等风险,使用前确保您了解并可以规避相关风险
284309

285310
**2.本项目不可用于违法犯罪等使用**
286311

287-
本人及本项目不对以上产生的相关后果负相关责任,请斟酌使用。
312+
**本人及本项目不对以上产生的相关后果负相关责任,请斟酌使用。**
313+
288314

289315
## 更新日志
290-
- **1.5.10 NEW** 支持插件
291-
- **1.5.9 NEW** 新增文件管理器,支持设备文件管理,下载、上传及预览
292-
- **1.5.8 NEW** 支持文件/文件夹/截屏一键拷贝至设备
293-
- **1.5.8 NEW** 支持输出原始视频/音频流
294-
- **1.5.7 NEW** CLI启动虚拟摄像头
295-
- **1.5.5 NEW** 优化Nicegui界面,方便termux使用
296-
- **1.5.4 NEW** 降低CPU占用
297-
- **1.5.3 NEW** 更新 Readme 文件
298-
- **1.5.3 NEW** 支持Opus音频解析
299-
- **1.5.0 NEW** 现已上线**pypi**
316+
- **1.6.0 NEW** 接入[uiautomator2](https://github.com/openatx/uiautomator2)
317+
- **1.6.0 NEW** 键盘控制器、鼠标控制器
318+
- **1.6.0 NEW** 日志管理器
319+
- **1.6.0 NEW** 修复窗口调整时跳动缺陷,DPG崩溃缺陷
320+
- **1.6.0 NEW** 全新插件体系,插件注入,插件管理器等
321+
- 1.5.10 支持插件
322+
- 1.5.9 新增文件管理器,支持设备文件管理,下载、上传及预览
323+
- 1.5.8 支持文件/文件夹/截屏一键拷贝至设备
324+
- 1.5.8 支持输出原始视频/音频流
325+
- 1.5.7 CLI启动虚拟摄像头
326+
- 1.5.5 优化Nicegui界面,方便termux使用
327+
- 1.5.4 降低CPU占用
328+
- 1.5.3 更新 Readme 文件
329+
- 1.5.3 支持Opus音频解析
330+
- 1.5.0 现已上线 [**pypi**](https://pypi.org/project/mysc/)
300331
- 1.4.2 使用[moosegesture](https://github.com/asweigart/moosegesture)实现右键手势控制功能,支持模拟第二个点、画线后退、调整音量、播放媒体等功能
301332
- 1.4.1 改用SQLite进行配置管理
302333
- 1.4.0 久等了!全新Core/Session/Connection/Utils架构
@@ -329,9 +360,6 @@ MYScrcpy是MY(Mxx & ysY)系列的开始,接下来,将继续开发完善
329360

330361
## 开发计划
331362

332-
---
333-
334-
- 接入[uiautomator2](https://github.com/openatx/uiautomator2)
335363
- APK管理器
336364
- 使用范例及教程
337365
- twisted / fastapi 接口

README_EN.md

+56-36
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# MYScrcpy V1.5.10
2-
3-
---
1+
# MYScrcpy V1.6.0
42

53
### [中文简介](https://github.com/me2sy/MYScrcpy/blob/main/README.md)
64

@@ -20,19 +18,33 @@ Pygame provides features such as mouse hiding and key event listening, suitable
2018

2119
## Features
2220

23-
---
21+
### Extensions
22+
- **1.6.0** Capture (For AI train 640x640 or whatever size you need)
23+
- CrossLine/Rect
24+
- Customizable screenshot frame size, with options for original or "what you see is what you get" (WYSIWYG) capture modes.
25+
- Use the 'C' key for taking screenshots, 'X' key to lock the screenshot frame position, and 'Q' to close the feature.
26+
- Capture the device's 1:1 actual graphics, ensuring high-resolution output.
27+
- Preview screenshot history, with options for custom save formats and batch saving.
28+
- Support for magnifier mode.
29+
- Support for customizing the color, random color, and thickness of CrossLine for increased visibility.
30+
- ![Capture](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/extensions/capture/img_1.jpg)
2431

2532
### Develop
26-
- **1.5.10 NEW** Extension Support! [**HowTo**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/extensions/Help_extensions_v1.md)
27-
- **1.5.8 NEW** Supports output the original format streams of video and audio to facilitate your development work
33+
- **1.6.0 NEW** Brand-new plugin architecture! Supports features such as configuration file injection.[**HowTo**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/extensions/Help_extensions_v1_6.md)
34+
- **1.6.0 NEW** Upgrade KVManager and ValueManager, with automatic registration and management.
35+
- ~~Extension Support! [**HowTo**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/extensions/Help_extensions_v1.md)~~
36+
- Supports output the original format streams of video and audio to facilitate your development work
2837
- `pip install mysc[all]` and ready to go
2938
- Session/Connection/Adapter/Args Framework, One Line And get A Image or Numpy.ndarray RGB
3039
- `Session(adb_device, video_args=VideoArgs(1200)).va.get_image()`
3140
- Minimize references on demand. Core can be deployed in **Termux**, Web GUI in LAN. [**Installation Tutorial**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/MYScrcpy_with_Termux.md)
3241

3342
### GUI
34-
- **1.5.9 NEW** File Manager with upload, download, delete and more [**HowTo**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/file_manager/Help_file_manager.md)
35-
- **1.5.8 NEW** Supports file transfer on Windows systems
43+
- **1.6.0 NEW** Added a bottom prompt and log bar, providing timely reminders and log viewing capabilities.
44+
- **1.6.0 NEW** Introducing a new plugin manager for managing plugins and custom configurations.
45+
- **1.6.0 NEW** Support [uiautomator2](https://github.com/openatx/uiautomator2)
46+
- File Manager with upload, download, delete and more [**HowTo**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/file_manager/Help_file_manager.md)
47+
- Supports file transfer on Windows systems
3648
- Use the right-click gesture Down|Up to quickly copy
3749
- Alternatively, use VAC -> Control -> CopyToDevice
3850
- Select files or folders on the PC (supports multi-selection), then draw the copy gesture on the MYScrcpy interface to copy the selected files/folders to the device's /sdcard/MYScrcpy/ folder
@@ -57,15 +69,20 @@ Pygame provides features such as mouse hiding and key event listening, suitable
5769
- Pull the window for free scaling
5870
- Automatically scale the window to video based on height/width
5971
- Support for virtual cameras
60-
- **1.5.7 NEW** **CLI start ```mysc-t-vc```** [**HowTo**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/Help_tools_vc_v1.md)
72+
- **CLI start ```mysc-t-vc```** [**HowTo**](https://github.com/me2sy/MYScrcpy/blob/main/files/doc/help/Help_tools_vc_v1.md)
6173
- On, off, switch devices at any time
6274
- Support OBS Virtual Camera /Unity Capture(windows)/v4l2loopback(Linux)
6375

6476
### Audio
65-
- Supports **opus (1.5.3 NEW)**/flac/raw
77+
- Supports opus/flac/raw
6678
- Support switching sound output devices, with VB-Cables to simulate microphone input
6779

6880
### Control
81+
- **1.6.0 NEW** Optimize the mouse controller
82+
- Support gesture switching feature space, gesture: DR
83+
- Support extension configuration injection
84+
- **1.6.0 NEW** Added a new keyboard switcher
85+
- Use F12 switch mode(UHID/ADB/Ctrl), F11 switch control space
6986
- TouchProxyEditor, supports keyboard, mouse and other control mapping methods, Windows/Linux applicable
7087
- Support UHID-Mouse, can realize the Android interface mouse and PC mixed use
7188
- Support UHID-Keyboard, simulate external Keyboard, directly input Chinese (Baidu, Sogou input method test passed)
@@ -77,9 +94,18 @@ Pygame provides features such as mouse hiding and key event listening, suitable
7794
- Support ctrl to adjust the speed of mouse movement in special scenarios
7895
- Sidebar multiple function keys
7996

80-
## Basic Usage
97+
## Contact & Help
98+
99+
**If you have any questions, ideas, or suggestions while using this product, please feel free to contact me through the following methods:**
100+
101+
#### QQ Group: 579618095
102+
![579618095](https://github.com/me2sy/MYScrcpy/blob/main/files/images/qq_group.jpg)
81103

82-
---
104+
#### Email: Me2sY@outlook.com
105+
106+
#### Blog: [CSDN](https://blog.csdn.net/weixin_43463913)
107+
108+
## Basic Usage
83109

84110
### 1.1 Pypi (Recommend)
85111
```bash
@@ -228,25 +254,23 @@ python -m myscrcpy.gui.ng.main
228254

229255
## Screenshots
230256

231-
---
232-
233257
### Main interface
234258
![dpg Screenshot](/files/images/myscrcpy_1_3_0_main.jpg)
235259

236260
### Right-Click Gesture Control Feature
237261
![dpg_gesture](/files/images/myscrcpy_1_4_2_g.jpg)
238262

239-
### Nicegui Web Interface **NEW 1.3.6**(DEMO)
263+
### Nicegui Web Interface(DEMO)
240264
![Nicegui Demo](/files/images/Nicegui_DEMO.jpg)
241265

242266
### Key mapping editor (TPEditor)
243267
![Touch Proxy Editor](/files/images/edit_touch_proxy.jpg)
244268

269+
### Extension Manager
270+
![img_1.png](/files/images/myscrcpy_1_6_0.png)
245271

246272
## Thoughts
247273

248-
---
249-
250274
As a long-time user of Scrcpy since the 1.X era, I am amazed by its development and magical features. I've always wanted to do something, but due to other projects (laziness), I never got started.
251275

252276
Until I encountered the excellent project [Scrcpy Mask](https://github.com/AkiChase/scrcpy-mask), I felt it was time to do something.
@@ -266,8 +290,6 @@ Finally, I deeply appreciate the support from my beloved during the development.
266290

267291
## Acknowledgements
268292

269-
---
270-
271293
Thanks to [**Scrcpy**](https://github.com/Genymobile/scrcpy/) Project and Author [**@rom1v**](https://github.com/rom1v)
272294
There is not MYScrcpy without Scrcpy.
273295

@@ -278,8 +300,6 @@ Thanks to all the users for your support and assistance. Hope that MYScrcpy can
278300

279301
## DECLARE
280302

281-
---
282-
283303
This project is intended for educational purposes (graphics, sound, AI training, etc.) , Android testing or just for fun.
284304

285305
**ATTENTION PLEASE:**
@@ -290,18 +310,21 @@ This project is intended for educational purposes (graphics, sound, AI training,
290310
The author and this project are not responsible for any related consequences resulting from the above usage, and you should use it at your own discretion.
291311

292312
## ChangeLog
293-
294-
---
295-
- **1.5.10 NEW** Extensions Support
296-
- **1.5.9 NEW** File Manager with upload, download, delete and more
297-
- **1.5.8 NEW** Support Copy Files or Dirs or ScreenShot from pc to device
298-
- **1.5.8 NEW** Raw Video/Audio Stream Output
299-
- **1.5.7 NEW** CLI Virtual Camera
300-
- **1.5.5 NEW** Update Nicegui Gui for termux
301-
- **1.5.4 NEW** Reduce CPU usage
302-
- **1.5.3 NEW** Update Readme
303-
- **1.5.3 NEW** OPUS available
304-
- **1.5.0 NEW** **pypi** support. Use `pip install mysc` or with gui: `pip install mysc[gui]`. then run `mysc-gui` or `mysc-cli` (with console)
313+
- **1.6.0 NEW** Supports [uiautomator2](https://github.com/openatx/uiautomator2)
314+
- **1.6.0 NEW** New Keyboard Controller, New Mouse Controller
315+
- **1.6.0 NEW** Log Manager
316+
- **1.6.0 NEW** Fixed the defect of window flickering during adjustment, and the DPG crash defect.
317+
- **1.6.0 NEW** Brand-new plugin architecture, featuring plugin injection and a plugin manager
318+
- 1.5.10 Extensions Support
319+
- 1.5.9 File Manager with upload, download, delete and more
320+
- 1.5.8 Support Copy Files or Dirs or ScreenShot from pc to device
321+
- 1.5.8 Raw Video/Audio Stream Output
322+
- 1.5.7 CLI Virtual Camera
323+
- 1.5.5 Update Nicegui Gui for termux
324+
- 1.5.4 Reduce CPU usage
325+
- 1.5.3 Update Readme
326+
- 1.5.3 OPUS available
327+
- 1.5.0 **pypi** support. Use `pip install mysc` or with gui: `pip install mysc[gui]`. then run `mysc-gui` or `mysc-cli` (with console)
305328
- 1.4.2 With [moosegesture](https://github.com/asweigart/moosegesture), Right-click gesture control functionality available, supporting features such as simulating a second touch point, line-based undo, volume adjustment, media playback, and more
306329
- 1.4.1 Managing Configuration with SQLite
307330
- 1.4.0 Introducing the brand-new Core/Session/Connection/Utils architecture
@@ -332,9 +355,6 @@ The author and this project are not responsible for any related consequences res
332355

333356
## Development Plan
334357

335-
---
336-
337-
- [uiautomator2](https://github.com/openatx/uiautomator2)
338358
- apk_manager
339359
- Using examples and tutorials
340360
- twisted/fastapi interface

0 commit comments

Comments
 (0)