ui.info(msg , [title])

Displays an information message dialog box with an icon consisting of a lowercase letter i in a circle, and waits for the user to click the OK button.

Parameters

msg

A string, or any value converted to a string, that indicates the message to display to the user.

title

An optional string that indicates the title of the message dialog box (defaulting to "Information")

Return value

This function returns the string "ok" once the user has pressed the OK button or after having closed the dialog.

Example

local ui = require "ui" -- create a new Pipe to capture output of the "ver" command local pipe = sys.Pipe("cmd.exe /K ver") -- wait for output sys.sleep(50) -- capture output local version = pipe:read():match("M.*%]") -- Displays Windows version print(ui.info(version, "Windows version"))