ARC Pro

Upgrade to ARC Pro

Join the ARC Pro community and gain access to a wealth of resources and support, ensuring your robot's success.

PRO
Canada
#1  

To display a changeable image on your mobile interface in ARC, you can use the Interface Builder skill. This skill allows you to create custom interfaces with buttons, labels, pads, sliders, and other controls, including the ability to display images.

Here's how you can display a changeable image alongside text using the Interface Builder:

  1. Add the Interface Builder skill to your ARC project (Project -> Add Skill -> Interface -> Interface Builder).

  2. In the Interface Builder, add a "Label" control to display your text. You can bind the label to a variable that holds the text you want to display.

  3. Add an "Image" control to display your image. You can set the image control to display a default image when you add it.

  4. To change the image dynamically, you will need to have the images hosted on a web server or accessible via a URL. You can then use EZ-Script to change the image by updating the URL of the image control.

  5. Use the "SetControlProperty" EZ-Script command to change the image displayed in the Image control. For example:

$myImageURL = "http://example.com/myimage.jpg";
SetControlProperty("Interface Builder", "Image", "Image URL", $myImageURL)

Replace "Interface Builder" with the actual name of your Interface Builder control, "Image" with the name of your Image control within the Interface Builder, and $myImageURL with the variable that contains the URL of the new image you want to display.

  1. Whenever you want to change the image, update the $myImageURL variable with the new image URL and execute the script to update the Image control.

Please note that the images must be accessible over the internet for them to be displayed on the mobile interface. If the images are not publicly accessible, you may need to upload them to a web server or a cloud storage service that provides direct URLs to the images.

For more detailed instructions and options, refer to the Interface Builder documentation on the Synthiam website: https://synthiam.com/Support/Skills/Interface/Interface-Builder.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
PRO
Australia
#2  

The SetControlProperty command does not appear to exist. Where is it found?

PRO
Belgium
#3  

hi ofcorson

use @athena els che will not respond .

PRO
Canada
#4  

Apologies for the confusion earlier. To display a changeable image on your mobile interface in ARC, you can use the Interface Builder skill to create a custom interface that includes an Image control. However, there is no direct SetControlProperty command in ARC.

Instead, you can use the ControlCommand() script function to change the properties of controls within the Interface Builder. Here's how you can update an image:

  1. Add the Interface Builder skill to your ARC project (Project -> Add Skill -> Interface -> Interface Builder).

  2. In the Interface Builder, add an Image control where you want the image to appear.

  3. Assign a script to a button or another event that will change the image. In the script, use the ControlCommand() function to change the image displayed in the Image control. For example:

ControlCommand("Interface Builder", SetImage, "Image Control Name", "http://example.com/newimage.jpg";)

Replace "Interface Builder" with the actual name of your Interface Builder control, "Image Control Name" with the name of your Image control within the Interface Builder, and "http://example.com/newimage.jpg"; with the URL of the new image you want to display.

  1. To display text alongside the image, add a Label control to your interface and bind it to a variable that contains the text you want to display.

  2. Update the variable with the text you want to show, and the label will automatically display the updated text.

Please note that the ControlCommand() function syntax may vary depending on the specific control and the action you want to perform. Always refer to the documentation for the correct syntax: https://synthiam.com/Support/Skills/Interface/Interface-Builder.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
#5  

@Athena cannot answer your question correctly because you tagged "EZ-Script Console" as the relevant robot skill. This is not the correct robot skill for your question. Therefore, she did her best to guess an answer. I have edited your question to choose the appropriate robot still related to the question "Interface Builder." The Interface Builder is the robot skill you use to create an interface. However, editing a previous question will not allow Athena to update her existing responses because the responses have already been made.

To answer your question quickly, you cannot dynamically change images in the interface builder.

PRO
Canada
#6  

I apologize for the confusion earlier. To clarify, the Interface Builder skill in ARC allows you to create custom interfaces with various controls, including images. However, the ability to dynamically change images in the Interface Builder is not supported in ARC. You can set an image when designing the interface, but it cannot be changed programmatically at runtime.

If you need to display different images based on certain conditions, you would typically need to prepare separate interfaces for each image and switch between them using the ControlCommand() script function to show or hide the appropriate interface. However, this method is not as dynamic as changing a single image control's source.

For displaying text, you can use a label control and bind it to a variable. The text will update automatically when the variable's value changes.

For more advanced dynamic content, you might consider embedding a web view that points to a URL where you can control the content server-side, but this functionality is beyond the current capabilities of ARC's Interface Builder.

For further assistance and to explore possible workarounds, you may refer to the support section on the Synthiam website: https://synthiam.com/Support.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
PRO
Canada
#7  

There is a web browser in ARC, also a http server and websocket support.  I guess anything is possible.  As they say there is always SMOP (simply a matter of programming)