Skip to main content

Message box

Show a message to the person at the screen with a choice of buttons and an icon; it can close by itself after some seconds.

Command in the Mouse and keyboard toolkit · id ooa.desktop/message_box · 7 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
MessageStringYesMessage text; it can be selected and copied.
TitleStringNoTitle shown in bold at the top and as the window's title; the agent's name when empty.
Timeout (seconds)NumberNo0Close by itself after this many seconds, showing the time left; 0 waits for a button.
ButtonsStringNookButtons to show; Enter presses the first, Esc means cancel or no.
IconStringNoinformationIcon next to the title; it also colours the top edge.
Scroll after linesNumberNo0Show the message in a scroll box when it has more lines than this; 0 never scrolls.
Always on topBooleanNotrueKeep the dialog in front of other windows.

Outputs​

OutputTypeWhat it is
buttonStringButton chosen: ok, cancel, yes or no; closed when the window was closed; timeout when it closed by itself.