Is there a way to display a message box with Yes/No as possible answers?

Feb 19 2010

A very common question that comes up, regarding the actions under "Message Boxes" category, is: "What if I don't want a message box with just an OK button? What if I need to prompt my user for a Yes/No answer?"

Fortunately, WinAutomation allows you to choose between 6 different combinations of answers that you can prompt the user of your job for. The available combinations that you can find in the Properties window of the "Display Message" action are:
(1): A single OK button
(2): An OK and a Cancel button
(3): A Yes and a No button
(4): Yes, No and Cancel buttons
(5): Abort, Retry and Ignore buttons
(6): Retry and Cancel buttons

These are the most common combinations of buttons that you may need for your jobs.

Notice, that you can determine the exact button that the user pressed in such a dialog box through a simple "If" action:

Your conditional should finally look like this:

No votes yet

Post your comment

You!
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may quote other posts using [quote] tags.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.