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.

Pause/Resume Script Question

Featured Replies

Here's the thing...I am well aware that when defining a button on a layout to perform a script, you have the option to act on the currently running script, if there is one running, by Pausing, Resuming, Halting, etc.

I can't, however, figure out how to accomplish this from a menu item that is setup to run a script or from inside another script.

In general, I stay away from pausing a script to allow user input. However, I found a situation where it was preferable to pause the script so that the user can't click into a different window, thereby sending the window to the back and essentially making it invisible to the user.

It works great when the user uses the mouse to click on the buttons on the layout which are set to Resume the paused script.

However, if I want to allow them to use keystrokes or some kind of alternative input device such as a foot pedal in lieu of clicking on the buttons on the layout, I can't set a menu item to perform a script and Resume the current script.

Any suggestions?

Beyond that this is candidate to the use of event triggers such as this:

http://www.myfmbutler.com/index.lasso?p=416

...would I see if I couldn't manage to turn the scripting need into a combination of CF's and a better relational structure.

There isn't a one size fits all here, but the need to script in the first place might be down to an inadequate structur - which I for one would feel uncomfortable with, if the quick fix method would learn you bad habits?

Explain your context and purpose!

--sd

I would split the first script into two, and end the second part with a Halt Script (to terminate the paused first part).

Of course, this has some downsides too, such as losing the ability to return to the original layout.

  • Author

Thanks comment! Truth be told, I had already broken the routine into two scripts, but I hadn't even thought about using a Halt Script step at the end of the second script. It would be common sense that that would be the ticket, but it just didn't come to me.

Thank you very much for getting me past my brain block. That's why I love this forum!

Edited by Guest

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.