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.

Close Custom Dialog script

Featured Replies

Would it be possible to close the custom dialog using a script? Now it seems that the custom dialog pauses the script indefinitely.

for instance:

....

show custom dialog["task performed"; "this window will close in 3 seconds"]

.....close custom dialog???

Kip!

Kip--

Not exactly. The Custom Dialog script step will wait forever.

However, if you were to script the opening of a window that LOOKS like a dialog box, you could set the script to pause for a period of time, and then continue. Said script would then continue by closing that active window. Like so:

# Script to create a 3-second 'dialog' box ...

New Window["Dialog"]

Go To Layout["DialogTest"]

Adjust Window["Resize To Fit"]

Pause/Resume Script [Duration (seconds)B) 3]

If[PatternCount(WindowNames, "Dialog")]

Close Window["Dialog"]

End If

The If statement catches for if the user has closed the Dialog before the time is up.

DialogTest will have your message on it and a button that says "Okay". Said button is linked to the command "Close Window".

This method has the advantage of being Web-compatible, if you're going down that slippery slope.

HTH,

David

  • 2 weeks later...
  • Author

Thanks for your help.

I´m not going into web so I found the troi dialog plugin to do the job...

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.