Jump to content

Setting SendKeyDelay when executing it with AutoIt3ExecuteLine


Recommended Posts

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

Link to comment
Share on other sites

@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 by therks
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...