OverviewExamples
number Dialog.Message ( |
Presents a dialog to the user with an informative message on it.
(string) The text that will appear in the dialog title bar.
(string) The text that will appear on the dialog.
(number) The type of dialog to display:
CONSTANT |
VALUE |
DESCRIPTION |
MB_OK |
0 |
OK (Default) |
MB_OKCANCEL |
1 |
OK | Cancel |
MB_ABORTRETRYIGNORE |
2 |
Abort | Retry | Ignore |
MB_YESNOCANCEL |
3 |
Yes | No | Cancel |
MB_YESNO |
4 |
Yes | No |
MB_RETRYCANCEL |
5 |
Retry | Cancel |
(number) The icon to display on the dialog:
CONSTANT |
VALUE |
DESCRIPTION |
MB_ICONNONE |
0 |
None. |
MB_ICONSTOP |
16 |
Stop. |
MB_ICONQUESTION |
32 |
Question. |
MB_ICONEXCLAMATION |
48 |
Exclamation. |
MB_ICONINFORMATION |
64 |
Information. (Default) |
(number) The button that will get the focus by default:
CONSTANT |
VALUE |
DESCRIPTION |
MB_DEFBUTTON1 |
0 |
The first button from the left. (Default) |
MB_DEFBUTTON2 |
256 |
The second button from the left. |
MB_DEFBUTTON3 |
512 |
The third button from the left. |
(number) The numeric constant for the button that was pressed:
CONSTANT |
VALUE |
DESCRIPTION |
IDOK |
1 |
The OK button. |
IDCANCEL |
2 |
The Cancel button. |
IDABORT |
3 |
The Abort button. |
IDRETRY |
4 |
The Retry button. |
IDIGNORE |
5 |
The Ignore button. |
IDYES |
6 |
The Yes button. |
IDNO |
7 |
The No button. |
If an error occurs, IDCANCEL (value 2) will be returned. You can use Application.GetLastError to determine whether this action failed, and why.
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions