Skip to content
Desktop inputOverview

messagebox

Displays a native message dialog.

Details#

Displays a native Windows dialog: text and caption are required strings, flags is an optional numeric Windows button/style mask defaulting to OK. Returns the numeric selected-button code and blocks until the dialog closes.

Examples#

Example

Luau
local button = messagebox("Local documentation example", "EXOL", 0)
print(button) -- 1 for OK