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

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

Recommended Posts

Posted

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.

Posted

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.

This topic is 1702 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.