OnEvent

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
Natslukip
Newbie
Posts: 1
Joined: Sat May 30, 2015 8:14 pm

OnEvent

Post by Natslukip » Sun Jun 07, 2015 11:48 pm

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

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: OnEvent

Post by Marcus Tettmar » Tue Jun 09, 2015 9:43 am

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?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts