欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【效率工具】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投屏

https://www.bilibili.com/video/BV1mV411z7K9/

相关标签: 测试工程师