Thumbnail

Display Popup

by Synthiam

Popup a custom window with custom text to the user from a command

How to add the Display Popup robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Display category tab.
  5. 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

User-inserted image

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

User-inserted image

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

  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: 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)

Resources

Source code available here: DisplayResponse.zip


ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

PRO
USA
#3  

Is there a way to change the size so the popup doesnt take up the whole screen?

PRO
Synthiam
#4  

I’ll add that as a feature for ya

PRO
Synthiam
#5  

OKay - you can specify the window size now

PRO
USA
#6  

Works as advertised.  Would it be just as easy as to add the ability to specify location of the window?

PRO
Synthiam
#7  

Will do - i'll need a bit to work it into my day :)

PRO
USA
#9  

Works great.  thanks for the really really fast help.