On 2009 Feb 16, at 14:53, Bruce Button wrote:
I want to create a modal pop-up layout with two buttons, say
"Select" and "Cancel". When the user presses "Select" one action
must happen, and when the user presses "Cancel" another action must
happen.
I have set up the layout as follows:
New Window
Go To Layout
Allow User Abort[Off] // to make the layout modal
Pause/Resume Script[Indefinitely]
I can get the script to resume by assigning the Resume Script
script step to a button, but how do I distinguish between the
buttons? If I assign a separate script to each one, then the
original script (as above) remains active and paused. There seems
to be no way to restart that script from another one.
There may be more elegant solutions to this, Bruce, but every time
I'm faced with a situation like that, I just go to the target layout,
dump the user out into Browse mode, and end the script. Let the next
actions thereafter be determined by the button they click on.