Kip Posted November 3, 2005 Posted November 3, 2005 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!
T-Square Posted November 3, 2005 Posted November 3, 2005 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) 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
Kip Posted November 18, 2005 Author Posted November 18, 2005 Thanks for your help. I´m not going into web so I found the troi dialog plugin to do the job...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now