In Dialog Editor, which button was pushed?
Keywords: Dialog editor ButtonPushed
How do I tell which button was pushed by the user when exiting a dialog box generated by the Dialog Editor?
The Dialog box returns the value of the selected push-button. The Dialog Editor sets the variable by generating the following line for you.
ButtonPushed=Dialog("MyDialog") Use ButtonPushed as your variable. ;i.e. If ButtonPushed == 1 then Run("program.exe", " ") You can of course, change the variable to something which has more meaning in your script.More information is available in the WinBatch User's Guide.
Article ID: W12837Filename: Dialog Editor which button was pushed.txt