Breaking the loop

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
IanSmith
Junior Coder
Posts: 24
Joined: Tue Jul 12, 2005 2:31 pm

Breaking the loop

Post by IanSmith » Tue Jul 12, 2005 2:41 pm

Hello all,

One thing that would be very helpful is a method to stop a script when a Modal Message is displayed. Several times when debugging a script I used MDLs to keep track of where I was, and sometimes I ended up in a loop from which there was no escape. The only way I found I could break out of the loop (apart from repeatedly pressing shift+escape while clicking a mouse to try to slip in) was to end the task and restart MS. This became a pain after the third time I realised I had not saved the latest changes...

Unless there is already a method and I'm doofus of the week...

Take care, Ian

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Jul 12, 2005 2:51 pm

A tight loop will always be difficult to stop. Try making it less tight by adding a small delay in it - perhaps just after the MessageModal:

Wait>0.3

This will ensure the loop yields to the processor at each iteration.
MJT Net Support
[email protected]

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