Tobias Posted April 26, 2006 Share Posted April 26, 2006 I have a script.exe in the Autostart folder. It is invoked by a hot key. If an error occurs in the script then the exe file is not running anymore after that and the hot key doesn't work. How can I make sure that the exe file is always running even if an error occurs in the script? Regards, T Link to comment Share on other sites More sharing options...
jvanegmond Posted April 26, 2006 Share Posted April 26, 2006 (edited) Funny i just scripted this Opt("TrayIconHide", 0);Change 0 to 1 to hide the tray icon Opt("RunErrorsFatal", 0) While 1 If Not ProcessExists("My Script.exe") Then Run("My Script.exe") EndIf WEnd Run this along with the My Script.exe [Edit] Oops i misread this, you can just use the option Opt("RunErrorsFatal", 0) i think if that's not working you have to restart the script if it's not running i think Edited April 26, 2006 by Manadar github.com/jvanegmond 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