kondo123 0 Posted September 12, 2021 Share 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.: Link to post Share on other sites
Danp2 1,382 Posted September 12, 2021 Share 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 WebDriver UDF [GH&S] Latest version Wiki FAQs Link to post Share on other sites
kondo123 0 Posted September 12, 2021 Author Share Posted September 12, 2021 im getting the same error. RunWait(@ComSpec & ' /c adb -s ' & $port & ' shell input text ' $text ', "", @SW_HIDE) (6) : ==> Unterminated string.: Link to post Share on other sites
Gianni 850 Posted September 12, 2021 Share 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.... Link to post Share on other sites
kondo123 0 Posted September 12, 2021 Author Share Posted September 12, 2021 My apologies, Thanks for help. It worked. Link to post Share on other sites
Gianni 850 Posted September 12, 2021 Share 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.... Link to post Share on other sites
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