【效率工具】mac下配合Alfred的安卓/ios快速投屏脚本

安卓

所需环境

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/

你可能感兴趣的:(测试工程师)