I'm new to MS and so far have written 7 scripts.
After the annoying problems with Shift-esc I used OnEvent KEY_DOWN. All was great.
I put my scripts into production.
First day all went well.
Second day after 400 passes thru these scripts, one failed.
The script was hung, but no human around to kill the script.
I think that it would be nice to have a OnEvent>KillTime,xxx,DoExit.
Where XXX is in seconds.
My scripts run from 5 to 125 seconds.
Nats
OnEvent
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: OnEvent
That's a good idea, but usually there's a reason for a "hang". If it is a script error popping up and blocking execution then the best thing to do is to use custom error handling, handle errors yourself, silently. That will prevent script errors from stopping the script from completing.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?