Australia
Requested — Edited

Ability To Dynamically Change A Button Image In The Interface Builder Score 550

The ability to dynamically change a button image in the interface builder, would allow an image to be displayed alongside a description of that image. I want to ask my robot to talk about exhibits in my Science Centre and display a photo and description. There are dozens of exhibits to talk about. Just displaying text is not sufficient.

Athena's response refers: https://synthiam.com/Community/Questions/how-do-i-display-an-image-21946

Want to see this feature happen? Like it to increase the score.

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
Synthiam
#1  

Have you also considered the full screen video player robot skill instead? Show videos with text of the item

PRO
Australia
#2  

Yes. That was my first effort. Unless my screen text size was set at 100%, it wouldn't display the image properly. The Video Player skill does seem to be the only solution though.

PRO
Synthiam
#3  

Let me think about that. We're all 90% working on Arc.2, so there are not a lot of free resources around here for volunteer work. If I get a moment, maybe I'll think of something quick to make. Until then, you're 100% text sizing with the video robot skill is the right away to go as well. Just wish the developer of the robot video skill library knew how to fix the scaling issue Shrug

PRO
Australia
#4  

I set my laptop to 100% display and tried the Full Screen Video Player. I got this unexpected error message... I am sure this worked last time I tried it about a year ago. Any ideas?

System.ArgumentException: Invalid handle pointer. Parameter name: handle at Mpv.NET.API.Mpv.set_Handle(IntPtr value) in E:\Documents\SVN\Developer - Controls\In Production\Full Screen Video Player\MY_PROJECT_NAME\Mpv.NET\API\Mpv.cs:line 41 at Mpv.NET.API.Mpv.InitialiseMpv() in E:\Documents\SVN\Developer - Controls\In Production\Full Screen Video Player\MY_PROJECT_NAME\Mpv.NET\API\Mpv.cs:line 95 at Mpv.NET.API.Mpv..ctor(String dllPath) in E:\Documents\SVN\Developer - Controls\In Production\Full Screen Video Player\MY_PROJECT_NAME\Mpv.NET\API\Mpv.cs:line 59 at Mpv.NET.Player.MpvPlayer.InitialiseMpv(String libMpvPath) in E:\Documents\SVN\Developer - Controls\In Production\Full Screen Video Player\MY_PROJECT_NAME\Mpv.NET\Player\MpvPlayer.cs:line 546 at Mpv.NET.Player.MpvPlayer.Initialise() in E:\Documents\SVN\Developer - Controls\In Production\Full Screen Video Player\MY_PROJECT_NAME\Mpv.NET\Player\MpvPlayer.cs:line 524 at Mpv.NET.Player.MpvPlayer..ctor(IntPtr hwnd, String libMpvPath) in E:\Documents\SVN\Developer - Controls\In Production\Full Screen Video Player\MY_PROJECT_NAME\Mpv.NET\Player\MpvPlayer.cs:line 518 at FullScreenVideoPlayer.FormVideoPlayer.PlayVideo(String filename, Boolean loop) in E:\Documents\SVN\Developer - Controls\In Production\Full Screen Video Player\MY_PROJECT_NAME\FormVideoPlayer.cs:line 60 Stopped

PRO
Synthiam
#5  

I just tested it, and it worked for me. I wonder if that's the author's error of saying, "This video type isn't supported," cause that's a strange error. It has HTML in there and everything.

I assume you're running the latest ARC version? I figure you are because you're usually up to date when we talk.

@athena can you make any sense of that error?

PRO
Canada
#6  

The error message you're encountering indicates an issue with the handle pointer used by the Mpv.NET API, which is part of the Full Screen Video Player robot skill. This could be related to the specific video file format, the video player's compatibility with your system, or a problem with the Mpv.NET library itself.

Here are a few steps you can take to troubleshoot the issue:

  1. Ensure you are using the latest version of ARC. If not, update to the latest version and try again.

  2. Verify that the video file format is supported by the Full Screen Video Player robot skill. Try playing a different video file with a common format (e.g., MP4) to see if the issue persists.

  3. Check if there are any updates or patches available for the Full Screen Video Player robot skill that might address this issue.

  4. Consider the possibility of a scaling or display setting conflict. Although you've set your display to 100%, there might be other settings affecting the video player's ability to render the video correctly.

  5. If the problem continues, you may want to explore alternative methods to display images and text, such as using the HTTP Server (Custom) robot skill to serve a web page with the desired content, which can be displayed in a browser.

If none of these steps resolve the issue, it may be necessary to wait for a fix or update from the skill developer or explore different approaches to achieve your goal.


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
Synthiam
#7  

Ah, she's probably correct about the file format. That library isn't the friendliest - that's for sure. I'm testing with a WMV file because it's all I have handy on this PC. What are you experimenting with?

PRO
Australia
#8   — Edited

Tried WMV and a JPG image. Both worked previously. Might be something in point 4 - scaling or display setting conflict. Also I don't really want to depend on an internet connection to display the information. ChatGPT is slow enough already. I am going to re-install the latest ARC in case that makes a difference.

PRO
Synthiam
#9  

My scaling is also set so the video robot skill is a bit wonky and it still worked. Let me see if i can send you a file that I tested with.

Okay see if this one works: testvid.zip

Remember to double escape your \ (backslashes) with two \

i.e.

"c:\\temp\\testvid.wmv"