Sign in to follow this  
Followers 0
ML99

Colon to separate multiple lines?

5 posts in this topic

It doesn't appear that I can use VBScript's colon separator to put multiple commands on one line. Is this correct? AutoIt gives me an error whether I do this from the command line or in a script.

Example:

AutoItSetOption('WinTitleMatchMode', 2) : WinGetTitle('Win')

The reason I need it is that I'm trying to just send commands dynamically to AutoIt3.exe with the /AutoIt3ExecuteLine switch.

Share this post


Link to post
Share on other sites



It doesn't appear that I can use VBScript's colon separator to put multiple commands on one line. Is this correct? AutoIt gives me an error whether I do this from the command line or in a script.

Example:

AutoItSetOption('WinTitleMatchMode', 2) : WinGetTitle('Win')

The reason I need it is that I'm trying to just send commands dynamically to AutoIt3.exe with the /AutoIt3ExecuteLine switch.

No you can't... and even if you could... it's not considered to be one line even in a basic language.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

No you can't... and even if you could... it's not considered to be one line even in a basic language.

Is there some other statement break character that AutoIt uses?

Share this post


Link to post
Share on other sites

Is there some other statement break character that AutoIt uses?

No, autoit is line by line.

Just write your stuff to a file, and use AutoIt3ExecuteScript, once it's loaded and you see the PID exists, then delete the file.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

No, autoit is line by line.

Just write your stuff to a file, and use AutoIt3ExecuteScript, once it's loaded and you see the PID exists, then delete the file.

OK, thanks.

Share this post


Link to post
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
Sign in to follow this  
Followers 0