Karen1958 Posted January 22, 2010 Posted January 22, 2010 I'm using a custom dialog to confirm the user wants to run a script. The question is: clicking on the Default Button ("OK") or Button 2 ("Cancel") has the same effect, which is that the script is run. How do I/Can I program the script so that it is aborted if the user clicks on "Cancel"?
LaRetta Posted January 22, 2010 Posted January 22, 2010 (edited) Hi Karen, Show Custom Dialog [ OK ; Cancel ; "Do you want to continue?" ] If [ Get ( LastMessageChoice ) = 2 ] ... used selected Cancel ... do whatever you want to cancel the script and then Exit or Half Script End If ... User selected OK so continue running :wink2: Edited January 22, 2010 by Guest
Recommended Posts
This topic is 5419 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