Jump to content

Colon to separate multiple lines?


ML99
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

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...