DuncanM Posted September 15, 2006 Share Posted September 15, 2006 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. Link to comment Share on other sites More sharing options...
DuncanM Posted September 18, 2006 Author Share Posted September 18, 2006 bump Link to comment Share on other sites More sharing options...
Michel Claveau Posted September 23, 2006 Share Posted September 23, 2006 Hi! From Python, take AutoIt-X: it's useful. Link to comment Share on other sites More sharing options...
sohfeyr Posted September 24, 2006 Share Posted September 24, 2006 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. Mine:Time Functions - Manipulate the system clock! | WinControlList (WinGetClassList++) | .Net Setup Wrapper, Detect or install .Net | Writing and using a VB .NET COM object in AutoItNot mine, but highly recommended:AutoItTreeViewExtension plugin | Menu code | Callback helper dll | Auto3Lib - Control the uncontrollable | Creating COM objects in AutoIt | Using .Net framework classes in AutoIt 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