dushkin Posted August 3, 2010 Share Posted August 3, 2010 Hi All, 1. How can I return a value from a script, and how do I read it? For example: I want to return a value of 0 or 1 from the script to define success or failure. 2. I am running this script from the command line. Will the autoit3.exe return me this value? Thanks!!! Link to comment Share on other sites More sharing options...
will never learn Posted August 3, 2010 Share Posted August 3, 2010 1. How can I return a value from a script, and how do I read it? For example: I want to return a value of 0 or 1 from the script to define success or failure. For example like this: msgbox(0,"",@error) 2. I am running this script from the command line. Will the autoit3.exe return me this value? Not sure. You can try running it from the script editor first and then run it from the command line to see if it still works. Link to comment Share on other sites More sharing options...
dushkin Posted August 3, 2010 Author Share Posted August 3, 2010 (edited) Ok, Got it! Exit(error code) !!!! Edited August 3, 2010 by dushkin Link to comment Share on other sites More sharing options...
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