Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

droidbot_ime is failing to write text which contains space #143

Open
dridiha opened this issue Jun 24, 2022 · 4 comments
Open

droidbot_ime is failing to write text which contains space #143

dridiha opened this issue Jun 24, 2022 · 4 comments

Comments

@dridiha
Copy link

dridiha commented Jun 24, 2022

Hello,

I want to report an issue within droidbot, exactlyin droidbot_ime, It appears to be unable to write a text that contains a space character.
I hope you look into this issue.

Thanks

@dridiha dridiha closed this as completed Jun 27, 2022
@dridiha dridiha reopened this Jun 27, 2022
@dridiha
Copy link
Author

dridiha commented Jun 27, 2022

Hi,
To correct this, you have just to change the line L89 with:
input_cmd = ["am", "broadcast", "-a", "DROIDBOT_INPUT_TEXT", "--es", "text", text, "--ei", "mode", str(mode)]

@dridiha dridiha closed this as completed Jun 27, 2022
@freddiewanah
Copy link

Hi, I think the problem has appeared again.

When I tried to run the command say:
adb shell am broadcast -a DROIDBOT_INPUT_TEXT --es text 'football club' --ei mode 0

It responds the following:
Broadcasting: Intent { act=DROIDBOT_INPUT_TEXT flg=0x400000 pkg=club (has extras) }
Broadcast completed: result=0

@yuanchun-li
Copy link
Collaborator

Yeah. I also noticed this issue. Unfortunately I don't have a solution yet. A dirty workaround is to avoid using spaces in the input text. For example, use "football-club" instead of "football club".
It could be fixed by adding some logic to replace "-" with spaces in DroidBotIME. I will do it when I have time.

@yuanchun-li yuanchun-li reopened this Jul 11, 2023
@yuanchun-li
Copy link
Collaborator

It should be fixed in the latest commit c958a0b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants