Sign in to follow this  
Followers 0
DuncanM

Integration with Python

4 posts in this topic

I am writing an AutoIT script that will be called from a Python program - is there any way to allow the 2 to interact, so that if the AutoIT script fails, it returns specific error codes (of my choosing) to Python? This would really be helpful in terms of error handling. Thanks.

Share this post


Link to post
Share on other sites



Hi!

From Python, take AutoIt-X: it's useful.

Share this post


Link to post
Share on other sites

I am writing an AutoIT script that will be called from a Python program - is there any way to allow the 2 to interact, so that if the AutoIT script fails, it returns specific error codes (of my choosing) to Python? This would really be helpful in terms of error handling. Thanks.

I don't know Python at all, but if you have access to the StdOut and StdErr output from a program, you can use ConsoleWrite and ConsoleWriteError.

If you redirect errors (see the help file, "Running AutoIt") then you can capture the text that normally appears in a window when the script crashes.

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