ML99 Posted October 26, 2007 Posted October 26, 2007 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.
Moderators SmOke_N Posted October 26, 2007 Moderators Posted October 26, 2007 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.
ML99 Posted October 26, 2007 Author Posted October 26, 2007 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?
Moderators SmOke_N Posted October 26, 2007 Moderators Posted October 26, 2007 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.
ML99 Posted October 26, 2007 Author Posted October 26, 2007 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.
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