Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.28k stars 10.58k forks source link

对于功能新方向的小建议 #4082

Open CN-make opened 1 year ago

CN-make commented 1 year ago

As a counter-control software, he still does not do enough for the daily text input editing, look forward to some improvements.

rom1v commented 1 year ago

Not sure what to do about this issue, there is nothing specific.

It is known that the text injection is limited on Android when the text is not ASCII. Did you test with HID/OTG?

TheTouYu commented 1 year ago

I start with this:”>scrcpy -e --no-audio --prefer-text“, and get this : scrcpy 2.0 <https://github.com/Genymobile/scrcpy> C:\Users\Q520x\Downloads\scrcpy-win64-v2.0\scrcpy-win64-v2... file pushed, 0 skipped. 63.4 MB/s (52867 bytes in 0.001s) [server] INFO: Device: HONOR FNE-AN00 (Android 12) INFO: Renderer: direct3d INFO: Initial texture: 1080x2400 [server] WARN: Could not inject char u+554a [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+963f [server] WARN: Could not inject char u+4e09 [server] WARN: Could not inject char u+5343 [server] WARN: Could not inject char u+4e07 [server] WARN: Could not inject char u+8d44 [server] WARN: Could not inject char u+4ea7 [server] WARN: Could not inject char u+8fd9 [server] WARN: Could not inject char u+79cd [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+6b63 [server] WARN: Could not inject char u+5728 [server] WARN: Could not inject char u+505a [server] WARN: Could not inject char u+7684 [server] WARN: Could not inject char u+4e8b [server] WARN: Could not inject char u+963f [server] WARN: Could not inject char u+65af [server] WARN: Could not inject char u+987f [server] WARN: Could not inject char u+53d1 [server] WARN: Could not inject char u+751f [server] WARN: Could not inject char u+6253 [server] WARN: Could not inject char u+5206 [server] WARN: Could not inject char u+554a [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+624b [server] WARN: Could not inject char u+52a8 [server] WARN: Could not inject char u+9600 [server] WARN: Could not inject char u+963f [server] WARN: Could not inject char u+65af [server] WARN: Could not inject char u+987f [server] WARN: Could not inject char u+53d1 [server] WARN: Could not inject char u+751f [server] WARN: Could not inject char u+6253 [server] WARN: Could not inject char u+5206 [server] WARN: Could not inject char u+7231 [server] WARN: Could not inject char u+7684 [server] WARN: Could not inject char u+8272 [server] WARN: Could not inject char u+653e WARN: Killing the server...

seems it can only input some numbers (0-9) and 大写的字母(A-Z), cann't input (a-z)。and i think he says “ does not do enough for the daily text input editing” is means cann‘t involve
Chinese input method for daily chat.

maybe it’s also caused by vendor,when i used my honor 20,those problems have not exist and it also can input with Chinese character,as for now my honor 70, actually it encounter crash when used in usb mode: I try with this ‘scrcpy -d --no-audio --prefer-text’, but i don't know why adb will disconnect in few seconds,but tcp/ip is ok. scrcpy 2.0 <https://github.com/Genymobile/scrcpy> C:\Users\Q520x\Downloads\scrcpy-win64-v2.0\scrcpy-win64-v2...file pushed, 0 skipped. 189.6 MB/s (52867 bytes in 0.000s) [server] INFO: Device: HONOR FNE-AN00 (Android 12) INFO: Renderer: direct3d INFO: Initial texture: 1080x2400 WARN: Device disconnected

CN-make commented 1 year ago

不知道如何处理这个问题,没有什么具体的。

众所周知,当文本不是 ASCII 时,文本注入在 Android 上受到限制。你测试过HID/OTG吗?

是OTG和HID都有測試 只是作為一個反控來說不能做到模擬鍵盤輸入 像是一些簡單的指令如鍵盤上的ESC和一些簡單的英文字符並不夠。文字輸入只能通過輸入電腦對話框後再利用Shell粘貼板進行粘貼讓人費解

1049731887 commented 1 year ago

各位,如果在手机上安装“讯飞输入法”,那么电脑上映射的英文就可以被输入法捕获!

sirinL commented 3 months ago

Not sure what to do about this issue, there is nothing specific.

It is known that the text injection is limited on Android when the text is not ASCII. Did you test with HID/OTG?

I thought the issue means : Use PC's IME to type none-ASCII character. In current version , we type Chinese via transport ASCII code to phone's IME, it just worl without PC's IME. So we need to switch PC's IME to english and use phone's IME. It's low efficiency contrast to PC's IME. Notioned that paste Chinese strings work well, so there is no problem on UHID keyboard but TextBox(maybe called this, im not clearly) not work. But when PC's IME is Chinese mode, all type is not work, happens nothing. it should aware my IME and capture its output as Chinese or ASCII strings. Ideal work style is create a TextBox and capture PC's IME output, transport to Phone.