Vindicator Posted November 21, 2006 Share Posted November 21, 2006 Well, my script pretty much saves info you feed it, incase of something like an error (Example: IExplorer has an error, and windows must shut down) How can I make my script tell if it was abnormally exited, and if it does, restart itself? I have tried including a script with: While 1 If ProcessClose("InfoSav.exe") Then Run("InfoSav.exe") Wend but it wont work! If I hadn't said thank you yet, and you deserve it, than thank you... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 21, 2006 Moderators Share Posted November 21, 2006 OnAutoItExit + @ExitCode or @exitMethod? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Vindicator Posted November 21, 2006 Author Share Posted November 21, 2006 but I though If I used tht than the script will close before it gets a chance to execute the command? If I hadn't said thank you yet, and you deserve it, than thank you... Link to comment Share on other sites More sharing options...
mikehunt114 Posted November 21, 2006 Share Posted November 21, 2006 but I though If I used tht than the script will close before it gets a chance to execute the command? How about Func OnAutoItExit() If @ExitCode = $desiredcode Then Run($scriptname) EndIf EndFunc IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] 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