Upgrade to ARC Pro
Synthiam ARC Pro is a cool new tool that will help unleash your creativity with programming robots in just seconds!
Popup a custom window with custom text to the user from a command
How to add the Display Popup robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the User Interface category tab.
- Press the Display Popup icon to add the robot skill to your project.
Don't have a robot yet?
Follow the Getting Started Guide to build a robot and use the Display Popup robot skill.
How to use the Display Popup robot skill
Use the ControlCommand() to send custom text to this skill and it will be displayed full screen. The configuration menu allows you to adjust the text font, text color, and background color. There is a default timeout value as well. All ControlCommand() for this skill can be found in the Cheat Sheet tab. See the video below for an example of use.Main Window
1. Display Popup
Nothing to interact with. Use the confguration to change parameters such as timeout, text color, background color, and font.
2. Script
Use a ControlCommand() script to execute a Display Popup.
Configuration
1. Default Timeout Numerical Field
Enter the default amount of seconds that you would like the popup to stay displayed for. Can be overwritten by ControlCommand() script.
2. Color Buttons
Change the color of the popup text and background.
3. Font Change Button
Change the popup font. Use any font that's installed on your device.
How to Use Display Popup
1) Add the Display Popup skill to your ARC project (Project -> Add Skill -> Misc -> Display Popup).
2) Change the Display Popup configuration if needed.
3) Run a Display Popup ControlCommand() script. View your Display Popup until the timeout closes the popup.
*Note: You can press any key to close the popup before the timeout expires.
Code Sample
Code:
# use default timeout value
ControlCommand("Display Popup", Display, "Some text to display")
# use specified 10 second timeout
ControlCommand("Display Popup", Display, "Some text to display", 10)
# use specified 10 second timeout and specify the window size
ControlCommand("Display Popup", Display, "Some text to display", 10, 100, 200)
Video
Resources
Source code available here: DisplayResponse.zip
this works great .