Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[ESC] to cancel pause

Featured Replies

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

  • Author

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

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.

  • 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:

LOL, I believe Halt also works when attached to Halt.

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

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.