Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5947 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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 by Guest
Posted (edited)

Never mind. I got it. :blush2:

I hadn't change the loop to 1 second - it was still on 45. :crazy2:

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 by Guest
Posted

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.

Posted

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:

Posted

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). :^)

Posted (edited)

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 by Guest
Added update

This topic is 5947 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.