I have an autoit script named "script.exe" and when it gets a fatal error it stops running and opens a msgbox.
The script makes use of "#include <IE.au3>" the fatal errors only occur when I am having network/latency issues.
This is the reason I am not just debugging the script and would like to set it up to relaunch, just simpler.
How would I make it so that when it gets an error it does something like this:
relaunch.exe is just a simple script to launch the original script:
The script makes use of "#include <IE.au3>" the fatal errors only occur when I am having network/latency issues.
This is the reason I am not just debugging the script and would like to set it up to relaunch, just simpler.
How would I make it so that when it gets an error it does something like this:
sleep(1800000);wait 30 minutes Run(@WorkingDir & "\relaunch.exe")
relaunch.exe is just a simple script to launch the original script:
while ProcessExists("script.exe") <> 0 ProcessClose("script.exe") sleep(1000) wend Run(@WorkingDir & "\script.exe")