Jump to content

Getting return value from a script


Recommended Posts

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:

Link to comment
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.
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...