The following constants can be used anywhere in macros or scripts in place of the actual values.
If you are retrieving the value of a property or parameter, scripts or macros will return the integer value, whereas Inspector will display the constant equivalent.
When using constants in the script editor, each constant must be prefaced by nl.
Result constant - Message box (Macro editor) |
Result constant - Message box (Script editor) |
Integer Value |
Description |
MsgOk |
nlMsgOk |
1 |
OK button was pressed. |
MsgCancel |
nlMsgCancel |
2 |
Cancel button was pressed (or ESC). |
MsgYes |
nlMsgYes |
6 |
Yes button was pressed. |
MsgNo |
nlMsgNo |
7 |
No button was pressed. |
Some of the Message box result styles have been made obsolete in 11.0. Refer to the obsolete constants table below.
The following message box result styles are obsolete and are no longer available:
© 2004-2021 looksoftware. All rights reserved.