Hey,

I'm working on a plugin at the moment but need some advice. I've created a message box that asks a question with yes/no buttons to select. The function that creates the message box needs to return a string saying which button was pressed. What I need is some way to pause the script, like a wait command or something, so the plugin stops until one of the buttons is pressed. Otherwise it returns the default value.

Any ideas please would be most appreciated. Thanks.