Skip to main content

Prompt for yes/no

Ask the user a yes/no question.

Command in the Mouse and keyboard toolkit · id ooa.desktop/prompt_yes_no · 5 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
QuestionStringYesQuestion to show.
Timeout (seconds)NumberNo0Answer No 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.
Always on topBooleanNotrueKeep the dialog in front of other windows.
Answer on timeoutBooleanNofalseAnswer used when the prompt times out or is closed without a choice.

Outputs​

OutputTypeWhat it is
answerBooleanTrue for Yes.
timed_outBooleanTrue when nobody answered before the timeout (or the window was closed).