kondo123 Posted September 12, 2021 Posted September 12, 2021 Hi Guys, I have problem with send text. If I do it this way it works $port='4203032cc36a3e1' RunWait(@ComSpec & ' /c adb -s ' & $port & ' shell input text Helloworld', "", @SW_HIDE) But I wonder why it doesn't work when I do it this way? $port='4203032cc36a3e1' $text = "HelloWorld" RunWait(@ComSpec & ' /c adb -s ' & $port & ' shell input text ' & $text & ', "", @SW_HIDE) I am getting an error like this (6) : ==> Unterminated string.:
Danp2 Posted September 12, 2021 Posted September 12, 2021 31 minutes ago, kondo123 said: RunWait(@ComSpec & ' /c adb -s ' & $port & ' shell input text ' & $text & ', "", @SW_HIDE) Remove the " &'" after $text and it should work correctly. kondo123 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
kondo123 Posted September 12, 2021 Author Posted September 12, 2021 im getting the same error. RunWait(@ComSpec & ' /c adb -s ' & $port & ' shell input text ' $text ', "", @SW_HIDE) (6) : ==> Unterminated string.:
Gianni Posted September 12, 2021 Posted September 12, 2021 ...read well, @Danp2 told you to remove & ' after the $text variable, that is, like this: RunWait(@ComSpec & ' /c adb -s ' & $port & ' shell input text ' & $text, "", @SW_HIDE) kondo123 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
kondo123 Posted September 12, 2021 Author Posted September 12, 2021 My apologies, Thanks for help. It worked.
Gianni Posted September 12, 2021 Posted September 12, 2021 even apologies? do not overdo it, non need to aplogize, we are glad to be of help ... kondo123 and Leendert-Jan 1 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now