ZeeshanA Posted April 24, 2018 Posted April 24, 2018 Following command sends the key strokes with 10 ms delay (default). AutoIt3 /AutoIt3ExecuteLine "Send('Hello World!')" Can I set the delay with something like: AutoIt3 /AutoIt3ExecuteLine "Opt('SendKeyDelay', 150);Send('Hello World!')" The above command doesn't work and I couldn't find how to run multiple commands in a single line. Thanks
AdamUL Posted April 25, 2018 Posted April 25, 2018 (edited) One way is to use operators. There are multiple ways of doing this. Give this a try. AutoIt3 /AutoIt3ExecuteLine "(Opt('SendKeyDelay', 150) + Send('Hello World!'))" Adam Edited April 25, 2018 by AdamUL ZeeshanA 1
therks Posted April 25, 2018 Posted April 25, 2018 (edited) @AdamUL You'll have to assign those commands to a variable, or enclose in parentheses, as otherwise it's an invalid line. /AutoIt3ExecuteLine "$v = Opt('SendKeyDelay', 150) & Send('Hello World!')" OR /AutoIt3ExecuteLine "(Opt('SendKeyDelay', 150) & Send('Hello World!'))" Edited April 25, 2018 by therks ZeeshanA 1 My AutoIt Stuff | My Github
ZeeshanA Posted April 26, 2018 Author Posted April 26, 2018 Thanks @AdamUL and @therks. Both ways worked for me. therks 1
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