hennaquick Posted January 26, 2006 Posted January 26, 2006 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.
Ted S Posted January 26, 2006 Posted January 26, 2006 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.
stanley Posted January 26, 2006 Posted January 26, 2006 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
Recommended Posts
This topic is 6878 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