autoitnewbie123 Posted July 20, 2009 Share Posted July 20, 2009 How do i do error handling? I have this function which allow me to run .exe. I want to catch all the error handling. What should i do? @error? Func installfunc() MsgBox(0,"","error code:" & @error,"error123") RunAsWait("","","",1,"hello.exe /SP- /SILENT /VERYSILENT") MsgBox(0,"","Installation ","Installation Successful") EndFunc Link to comment Share on other sites More sharing options...
Beege Posted July 20, 2009 Share Posted July 20, 2009 How do i do error handling? I have this function which allow me to run .exe. I want to catch all the error handling. What should i do?@error? Func installfunc() MsgBox(0,"","error code:" & @error,"error123") RunAsWait("","","",1,"hello.exe /SP- /SILENT /VERYSILENT") MsgBox(0,"","Installation ","Installation Successful")EndFunc@error tells you if the previous function had any errors or not.. In the example you gave you would check @error after RunAsWait() to see if Hello.exe launched ok. Its not going to tell you if hello.exe had any problems. Only functions written by autoit. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator 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