Jump to content

Custom Dialog


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

Recommended Posts

I use a button to show a custom dialog asking a user if they want to perform a function.

Even if I cancel the dialog using the cancel button, the function is performed.

This is how I did it in script maker

[color:blue]Show Custom Dialog []

[color:blue]If

[color:gray]--statements here

[color:blue]Else

[color:gray]--more statements here

[color:blue]End If

How can I abort the script if the user selects the cancel button?

Link to comment
Share on other sites

You need to have something in the IF statement.

In this case, use the Get( LastMessageChoice ) function. It'd be something like:

If[ Get( LastMessageChoice ) = 1 ]

stuff when button 1 is clicked

Else If[ Get( LastMessageChoice ) = 2 ]

stuff when button 2 is clicked

Else

stuff when button 3 is clicked

End If

Link to comment
Share on other sites

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