【效率工具】mac下配合Alfred的安卓/ios快速投屏脚本
程序员文章站
2024-03-14 19:49:53
...
安卓
所需环境
https://blog.csdn.net/was172/article/details/99705855
#!/bin/bash
nohup scrcpy &
演示
安卓投屏
https://www.bilibili.com/video/BV1Rv411v7nF/
iOS
所需环境
Quicktime Player ;Python依赖包:PyUserInput
脚本
#!/bin/bash
open /Users/bytedance/Desktop/command/ios投屏/QP.app
python3 /Users/bytedance/Desktop/command/ios投屏/ios投屏.py
import sys
sys.path.append('/usr/local/lib/python3.8/site-packages')
from pykeyboard import PyKeyboard
k = PyKeyboard()
k.press_keys(characters=['command','alternate','n'])
演示
ios投屏
上一篇: 使用python输出100以内的质数
下一篇: 能够把PPT变成小视频的源代码