ycomp Posted April 18, 2008 Posted April 18, 2008 Hi, I have a compile.au3 script... it simply compiles many scripts of mine by calling aut2exe using Run(). My problem is this... how can I detect when a compile fails? It is still creating the exes for me, so my installer won't complain when I try to package it after a compile. If I can either detect the error in the compile script, or force aut2exe to not create the exe if compile failed, then I have solved my problem. So could someone explain how to do either the first or the 2nd thing? thanks.
Zedna Posted April 18, 2008 Posted April 18, 2008 run au3check.exe first. Resources UDF ResourcesEx UDF AutoIt Forum Search
monoceres Posted April 18, 2008 Posted April 18, 2008 You could check the script with Au3check that comes with autoit, like this: $code=RunWait("Au3Check.exe c:\testscript.au3",@ProgramFilesDir&"\Autoit3",@SW_HIDE) If $code>0 Then MsgBox(16,"Error","There was an error") EndIf Broken link? PM me and I'll send you the file!
ycomp Posted April 18, 2008 Author Posted April 18, 2008 thanks... really helps... you guys are fast!
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