MessageBoxEx

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Similar to ShowMessage but accepts a string directly rather than via a message form. Variables can be passed using string formatting, or string variables via ToString($). The message will be displayed in a box that prompts for user confirmation.
Supports up to 10 custom buttons separated by "|". To determine which button was selected, GetButtonPressed can be used.

Syntax

[help]
(none) MessageBoxEx string:formatable 

Example

MessageBoxEx "This message will in a box on screen|Ok|Cancel"
set iBtn to GetButtonPressed
if (iBtn == 1)
   MessageEx "Cancel was selected"
endif


See Also