January 27, 200521 yr I have trying to set a script that when the user is sent to a layout and it is set to pause, and the user wants to cancel, he/she will be sent back to another layout. I set a script with an "if" if get (lasterror)=1 go to layout else print end if I must have some order wrong. Any help would be great. Thanks
January 28, 200521 yr I believe 'user canceled action' refers to clicking cancel on dialog boxes. It is better to use Allow User Abort [Off] in your script, so that no cancel button is available on the Status Area, and add a Cancel button, attached to a different script, to your layout instead.
January 30, 200521 yr Author But if I set go to layout to pause, would the button still work on the layout? I will give it a try.
January 30, 200521 yr Author I tried that, and the button won't work. I set the script for the button to exit script and go to layout.... maybe it is exiting it's own script...
January 30, 200521 yr Himitsu: Your button's script is exiting itself. You should set it to go to layout first, then use Halt Script, which kills all running scripts. -Stanley
January 30, 200521 yr In the button dialog box there is a choice of what to do with current script. The default value is Pause. You can Halt, Exit or Resume in addition to Pause. It is in the lower left of the Options box.
Create an account or sign in to comment