Skip to main content

Prompt for value

Ask the user to type a value, optionally hidden as it is typed.

Command in the Mouse and keyboard toolkit · id ooa.desktop/prompt_value · 6 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
QuestionStringYesQuestion to show.
DefaultStringNoPre-filled answer.
Timeout (seconds)NumberNo0Give up after this many seconds; 0 waits.
TitleStringNoTitle shown in bold at the top and as the window's title; the agent's name when empty.
MaskedBooleanNofalseShow dots instead of the typed characters. The value is still plain text; use Prompt for password for secrets.
Always on topBooleanNotrueKeep the dialog in front of other windows.

Outputs​

OutputTypeWhat it is
valueStringEntered text.
cancelledBooleanTrue when the user cancelled or the prompt timed out.
timed_outBooleanTrue when nobody answered in time; value is then the default.