January 26, 200620 yr I have a custom dialog box that prompts the user for input to use in the current script. However, if the user clicks Cancel instead of OK I want the script to Halt. Currently, the script continues regardless if there is any input or not.
January 26, 200620 yr When you say the user clicks cancel do you mean that X in the upper right corner of the dialog box? If so I believe that this is typical behaviour. There are a number of previous posts on this forum and others concerning this topic and how to remedy.
January 26, 200620 yr Hennaquick: In your script, just after you put up the custom dialog box, you can check for the user's selection. Depending on which button is the default, you'd do something like this: If [Get(LastMessageChoice)=2] Halt Script End If The buttons are numbered, which is the number you can check for. -Stanley
Create an account or sign in to comment