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

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

Recommended Posts

Posted

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!

Posted

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

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