File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 34
34
35
35
### 输入命令
36
36
37
+ 详细快捷输入命令事例可以参考:[ https://github.com/bihe0832/Settings-Tools/blob/master/config/mac/.zshrc ] ( https://github.com/bihe0832/Settings-Tools/blob/master/config/mac/.zshrc )
38
+
37
39
- 简单文本输入:主要用于简单的中文输入,一次即可完成输入
38
40
39
41
` adb shell am broadcast -a ZIXIE_ADB_INPUT_TEXT --es msg DATA `
50
52
51
53
`adb shell input keyevent 66`
52
54
55
+ - shell 切换到当前输入法
56
+
57
+ ```
58
+ fun zixieadbinputchangetozixieinput(){
59
+ # 获取当前输入法包名
60
+ current_ime=$(adb shell settings get secure default_input_method | tr -d '\r')
61
+ echo "$current_ime"
62
+
63
+ # 判断输入法是否为指定的包名
64
+ if [[ "$current_ime" != "com.bihe0832.adb.input/com.bihe0832.android.base.adb.input.ZixieIME" ]]; then
65
+ echo "$current_ime"
66
+ adb shell ime set com.bihe0832.adb.input/com.bihe0832.android.base.adb.input.ZixieIME && sleep 2
67
+ fi
68
+ }
69
+ ```
53
70
## 拼图游戏
54
71
55
72
### 应用简介
You can’t perform that action at this time.
0 commit comments