本帖最后由 xzwcn 于 2020-11-28 16:12 编辑
请问批处理有窗口关闭时触发事件的机制吗?类似js的Onbeforeunload。- set sid=xxx
- ::在电脑使用时使用QQ输入法
- adb -s %sid% shell ime set com.tencent.qqpinyin/.QQPYInputMethodService
- adb -s %sid% shell ime enable com.tencent.qqpinyin/.QQPYInputMethodService
- scrcpy -s %sid% --turn-screen-off
- ::关闭窗口时切换为讯飞输入法【如何实现点击窗口关闭时触发执行以下代码】?
- ::adb -s %sid% shell ime enable com.iflytek.inputmethod/.FlyIME
- ::adb -s %sid% shell ime set com.iflytek.inputmethod/.FlyIME
复制代码 相关:
关于scrcpy对中文输入法支持不友好的解决办法 · Issue #1055 · Genymobile/scrcpy
https://github.com/Genymobile/scrcpy/issues/1055 |