Skip to main content

Prompter

Summary

This Automate script will execute the Prompter application. Prompter is a simple application designed to present a prompt on the desktop and optionally display a date and time picker. It supports any number of buttons, as well as optional header images and custom application icons.

Sample Run

This script is a function script and should not be manually executed. Utilize the CWM - Automate - Script - Prompter - Template to get a copy of all potential variables and paste the else section into any script that should use Prompter.

Dependencies

Variables

NameDescription
MessageHolds the desired message for Prompter.
DateTimeSelectorToggles a date/time selection in the Prompter pop-up (True or False).
IconHolds the local path and file or URL to a desired pop-up icon.
HeaderImageHolds the local path and file or URL to a desired pop-up header image. This should be the name of the file in the /Transfer/App directory of the LTShare when @LTShareDownload@ is set to 1, e.g., header-image.jpg.
TitleHolds the desired title text for the Prompter pop-up.
ButtonsHolds the desired button options for the Prompter pop-up (space-separated values, quotes around multi-word buttons).
TimeoutThe duration of time you wish the Prompter pop-up to remain on the user's screen before auto-closing.
PrompterResultsThe user-returned results after executing Prompter.
LTShareDownloadUse the LTShare to download Prompter and header images. Requires the Prompter.exe and desired header images to be in the /Transfer/App directory of the LTShare.
TwelveHourChanges the display of time in the Date/Time selector to 12-hour.
ThemeSets the theme for Prompter. If omitted, the theme will use the default Windows theme. Options are "Dark" and "Light".
DateTimeFromHoursStores the number of hours to add to the current time in order to set the starting point for the Date/Time selector.
DateTimeToHoursStores the number of hours to add to the initial time in the Date/Time selector in order to display the last available option to select.
HTMLMessageSet this to true to enable the HTML decoding of the message.
UserInputSet this to true to enable the user input field.
userinputtextSet initial/help text for the user input field.
selectedButtonButton selected by the user.
dateTimeSelectionDate and time selected by the user.
userResponseInput/feedback provided by the user in the user input field.

Output

  • Script Variable