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 Display 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, which will be displayed on full screen for a set period. 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 configuration 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 number of seconds you want the popup to stay displayed. It can be overwritten by the 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
Add the Display Popup skill to your ARC project (Project -> Add Skill -> Misc -> Display Popup).
Change the Display Popup configuration if needed.
Run a Display Popup ControlCommand() script. View your Display Popup until the timeout closes the popup.
*Note: Press any key to close the popup before the timeout expires.
Control Commands
ControlCommand("Display Popup", "Display", "Text"); ControlCommand("Display Popup", "Display", "Text", [timeout seconds]); ControlCommand("Display Popup", "Display", "Text", [timeout seconds], [window width], [window height]); ControlCommand("Display Popup", "Display", "Text", [timeout seconds], [window width], [window height], [window x location], [window y location]);Code Sample
# 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)
this works great .
Is there a way to change the size so the popup doesnt take up the whole screen?
I’ll add that as a feature for ya
OKay - you can specify the window size now
Works as advertised. Would it be just as easy as to add the ability to specify location of the window?
Will do - i'll need a bit to work it into my day :)
Okay there you go
Works great. thanks for the really really fast help.