August 13, 200817 yr I want to start a script with a long pause and allow person to hit [ESC] to cancel the script during the pause. Once the script begins running (in this example at the Show Custom Dialog[] portion, it will be too late. You will see there is option to Continue or Cancel shown in the status bar (attached) but I cannot reproduce this option within the script! I have tried looping; I have tried attaching Halt to the button; nothing seems to work, even with Allow User Abort [ On ]. I even tried two scripts but a pause is a pause is a pause. I cannot use other methods (it is tied to another post and when connection is lost, I cannot trap for errors). So I want to give User option of hitting [ESC] to stop the process. Am I due for a long vacation again? Are there ways of replicating what I need? I think I must be missing something very simple and I will feel silly for asking this question ... but it won't be the first time. ROFLMAO!! UPDATE: Oh, I even tried capturing the error 1 (User canceled action) and it didn't work. LaRetta :king: TestPause.zip Edited August 13, 200817 yr by Guest
August 13, 200817 yr Author Never mind. I got it. I hadn't change the loop to 1 second - it was still on 45. But I am curious now ... if anyone knows of a way without the loop, I'd appreciate hearing it because the problem with loop is that the timing must be exact, ie, the person must hit esc continually until it responds. I don't like that at all! A User should be able to [ESC] and have it work the FIRST TIME!! Edited August 13, 200817 yr by Guest
August 13, 200817 yr I have tried attaching Halt to the button; nothing seems to work Try attaching the Halt to ANOTHER button (one that doesn't trigger the same script again). This should work even with allow abort off.
August 13, 200817 yr Author Okay!!! Well, Halt only works when attached to a script so I created a script Enter Browse Mode[] and attached the Halt. It works and I was then able to turn Allow User Abort[] back to OFF! Thank you so much, Michael! :smile2:
August 13, 200817 yr Author Well I had created a script with just halt in it. But when posting back here, it seemed a bit, uhmmmmm, anal. So I changed it to Enter Browse[] mode because it just looked funny to halt a halt. ha ha! And I have to say ... I think it is strange that we have to do this at all. I think it strange that we do not have the same functionality as the status area for cancel and, stranger still, that it doesn't throw an Error #1 for user cancel that I can trap. But then, you and I've had similar conversations before (which I WILL get back to when I have the time). :^)
August 13, 200817 yr Author Oh. Button with Halt Script. Nothing attached to 'current script.' Oh, yes indeed - I need a vacation!! UPDATE: I confess that I have never used Halt Script except within a script! I have never used it by itself! Way cool! Edited August 13, 200817 yr by Guest Added update
Create an account or sign in to comment