Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Help? On Fatal Error, Launch different script.

$
0
0
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:

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")


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>