Wait.Message
Description
- Displays a message box with specified msg and, optionally, a countdown timer starting at n seconds, & waits for user to press a button to determine whether to continue.
Syntax
- Wait.Message(n, msg)
- Shows message msg for up to n seconds.
- Wait.Message(msg)
- Shows message msg for 1 second.
Parameters
- n
- (integer) length of countdown, in seconds.
- If countdown reaches 0, then the wait ends and the next PowerPro command is run.
- Optional, default is 1.
- msg
- (string) message to display in message box
Examples
- Wait.Message("Shutting down...")
Shutdown.Windows - Wait.Message(10, "Rebooting in 10 seconds...")
Shutdown.Reboot