DISPLAY_CONFIRM
Description
The DISPLAY_CONFIRM is a display command that shows a message to the user and a text button to continue. An optional, automatic timeout value can be set to continue without user input.
Syntax
DISPLAY_CONFIRM "Message", "Confirmation Text", timeout_value
Arguments
timeout_value: time value in seconds
Tip!
To prevent timeout, use a value of -1. Why does this happen?
Example
Input
Snippet from Deliver the Goods program:
OPEN_LID
DISPLAY_CONFIRM "Please remove your items", "Done", 120
DISPLAY "Thank you, have a nice day!"
RUN "CloseLid Trick"
Output
The robot's lid will open. Then, the screen will show a confirmation screen with the message "Please remove your items" and a confirmation button of "Done". If the button is pressed or 120 seconds pass without user interaction, the screen will display "Thank you, have a nice day!" Finally, the robot's lid will close.
Resources
Explore the SaviScript GitHub repository for all published instances of this command.