Jump to content

Closing a popup window using script


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

Recommended Posts

Simply I have a popup window (new layout) that is opened by script called "OPEN" at the end of the script is the step "pause resume script {indefinitely]". This is intended to insure the window is closed properly before continuing, or that multiple windows are not produced if exited otherwise. A close button is used to execute the script called "CLOSE". This script is simply "close window (nameOfwindow)". The problem is the script step returns to the "OPEN" script waiting for the user to click on "continue" in the status window. How can this be avoided.

Link to comment
Share on other sites

Close Window [ ]

Halt Script

Also, if the button is on the window, the window name isn't necessary, as the script will close the window on which it's focusing.

You can also use the popup (from Specify Button) on the Close button itself. If you change it to Halt, it'll work also. It depends upon what you wish to do after you leave the popup window and whether you use that other Close Window script for scripts which might need to continue after closing the window.

wink.gif

Link to comment
Share on other sites

Attempted "halt scrip" no luck. The close button is on the popup. It clears the continue on the popup. What I failed to make clear is the "continue" appears in the originating layout status area after the popup closes. This where the open button is.

Link to comment
Share on other sites

It seems that your OPEN script is paused, and no action is taken to put it out of its misery, so to speak.

You could make your OPEN script:

Pause / Resume script {indefinitely)

Close window (nameOfwindow)

Then set the closing button simply to Resume Script.

Alternatively, set the button to run the CLOSE script, AND to Halt current script.

Link to comment
Share on other sites

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