Jump 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.

Continue with script after a time if user doesn't press any buttons

Featured Replies

I have a shutdown script where if you quit or close the last window, a dialog box comes up and asks if you really want to quit. Pressing "cancel" halts the script, pressing "continue" closes the last window and so quits Filemaker.  I'm trying to figure out how to cause the script to continue and close the last window after a period of time (say, 10 seconds) if the user doesn't press anything at all. Script is:

Open dialog that says "Close this last window? This will close dBase completely."

If [ Dial_GetButton (DIALOGTEXT) = 2 ]     >>Note: I use Troi Dialog<<
     Halt Script
Else
     Go To Layout [ "DevStartup" (DevStartup) ; Animation: None ]
     Close Window [ Current Window ]
End If

Thanks for any help with this.

You could open the dialog in a small card window.  

Your script would open the card window, and pause for 10 seconds, then close.

On the window you could have 2 buttons, 'OK' and 'Cancel'.  

'Cancel' would halt the first script.

'Ok' could either do nothing (as the first script will continue and close the file), or Halt the running script and fire the close file (close card window, then close file).

You could also make it one script and attach script parameters to the buttons to do everything in one script.

  • Author

Perfect. Thanks, Steve!

Create an account or sign in to comment

Important Information

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

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.