- @echo off
- set "sid=XXX"
- if "%~1"=="Close" (
- echo 窗口开启执行代码...
- adb -s %sid% shell ime set com.tencent.qqpinyin/.QQPYInputMethodService
- adb -s %sid% shell ime enable com.tencent.qqpinyin/.QQPYInputMethodService
- echo scrcpy -s %sid% --turn-screen-off
- pause&exit
- ) else (
- start /wait "" %~0 "Close"
- echo 窗口关闭执行代码...
- adb -s %sid% shell ime enable com.iflytek.inputmethod/.FlyIME
- adb -s %sid% shell ime set com.iflytek.inputmethod/.FlyIME
- exit
- )
复制代码
|