Sign in to follow this  
Followers 0
dushkin

Getting return value from a script

3 posts in this topic

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!!! :blink:

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ok, Got it!

Exit(error code) !!!!

Edited by dushkin

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