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

Input a whole string instead of one word. #9

Open
jaredrummler opened this issue Oct 27, 2014 · 0 comments
Open

Input a whole string instead of one word. #9

jaredrummler opened this issue Oct 27, 2014 · 0 comments

Comments

@jaredrummler
Copy link

It would be great to have the "Controller" be able to input a whole string instead of just one word at a time. Example script I have used on Android in the past that might help implement this:

#!/system/bin/sh

phrase="$@"
word_count=`echo $phrase | wc -w`
n=0

for i in $phrase
do
    let n++
    input text $i
    if [ $n -lt $word_count ]
    then
        # Add a space between words.
        input keyevent 62
    fi
done
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

1 participant