订阅

UiPath 活动

UiPath 活动指南

Message Box

UiPath.Core.Activities.MessageBox

描述

Displays a message box with the specified text and button options.

Important!

Due to internal changes, this activity will no longer be visible in the Favorites list when upgrading to v20.4 or newer, if it was added to the Favorites list with a v19.4 or older version of UiPath.System.Activities.

属性

Input

  • Buttons - Specifies which buttons to be displayed in the message box.
  • Caption - The title of the message box dialog.
  • Text - The text to be displayed in the message box.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • TopMost - If selected, always brings the message box to the foreground.

Output

  • ChosenButton - A String variable that specifies which of the buttons specified in the Buttons property has been clicked during run time. The possible options are: Ok, Yes, No or, Cancel.

Note:

您无法在设计时手动将值添加到该属性字段中。如要使用该字段,请创建一个空变量并向该字段分配此变量。在运行时,根据与消息框交互的人类用户所单击的按钮,您可以自定义自动化继续运行的方式。

Common

  • DisplayName - The display name of the activity.

UiPath.Core.Activities.MessageBox

描述

Displays a message box with the specified text and button options.

To learn how to use this activity, see Tutorial: Working with Files and Folders.

配置活动

In the Body of the Activity

To specify the text to display in the message box, click Plus plus button on the right side of the field, and then choose one of the available options from the menu:

  • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell, or indicate a field from a selected email in Outlook to display its contents in the message box.
  • Use Saved Value - Select a value that you previously saved for later use in the project.
  • Text - Enter a message in the Text Builder.
  • Number - Enter a numeric value.
  • Ask when run - Prompt for a text when the project is executed.
  • Open in Advanced Editor - Enter a VB expression.

In the Properties Panel

Common

  • DisplayName - The display name of the activity.

Input

  • Buttons - Select which button options to display in the message box: Ok, OkCancel, YesNoCancel, or YesNo. By default, message boxes include an Ok button.
  • Caption - The title of the message box dialog.
  • Text - The text to be displayed in the message box.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • TopMost - If selected, the message box always appears in the foreground.

Output

  • ChosenButton - Optionally, save the value of the button clicked when the project is executed. Depending on the selection for the Buttons property, the output value can be one of the following: Ok, Yes, No, or Cancel.

11 个月前更新


Message Box


建议的编辑仅限用于 API 参考页面

You can only suggest edits to Markdown body content, but not to the API spec.