Script that displays a custom window without making a full addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
seftongillis Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #1
Hi,

Is it possible to create a script for XBMC to display a custom window that shows an image, without having to create a folder and an xml file? (In other words, without making it a full fledged addon?) I tried using controls but I couldn't make it work. My idea was to use XBMC.RunScript() in keyboard.xml to run this script.

Thanks!
(This post was last modified: 2013-07-26 01:48 by seftongillis.)
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 6,355
Joined: Jul 2010
Reputation: 111
Location: USA
Post: #2
You mean display a static image (like a screensaver without the motion)?
find quote
seftongillis Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #3
That's right, one specific, static image in a window similar to a dialog.ok.
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 6,355
Joined: Jul 2010
Reputation: 111
Location: USA
Post: #4
Is there a reason you don't want to create a folder? Otherwise, you could place your image file in its own folder and use the Slideshow function to display the image. Since there's only one image file in the folder, it will just display that image statically.

You can then map that function to a keyboard or remote control key via a keyboard.xml definition:
Code:
<some-key>SlideShow(/path/to/folder/containing/single/image-file)</some-key>
find quote
seftongillis Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #5
Hmm, that does work nicely, except for the fact that triggering that slideshow stops playback of everything else. I'd like to be able to display an image while any media file is being played and close said image without having to stop playback (or at least, allowing it to resume exactly where it left off, position and playlist intact).

Well, creating a folder seems a bit too much for something that I expect (or expected) to be simple. The contents of the addon.xml file confuse me, and while I could start analyzing some plugins to understand how they work, I'm a bit discouraged by the fact that they are probably so complex in comparison with what I'm trying to achieve.
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 6,355
Joined: Jul 2010
Reputation: 111
Location: USA
Post: #6
If you're playing music, you can escape back the home page and then launch your slideshow. Your music will continue to play in the background. It would help if you provide details about the exact scenario you're trying to accomplish.
find quote
seftongillis Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #7
I'm trying to display an image that helps the viewer to remember what certain buttons on a remote control do. I remapped these buttons to do things they weren't originally intended to do, so the symbols associated with them are no longer helpful. I had to do this because I ran out of buttons.
find quote
teeedubb Offline
Donor
Posts: 2,350
Joined: Mar 2010
Reputation: 58
Location: Down Under
Post: #8
Stick a printout to the back of the remote listing what button does what action?

My Add-ons, only available for XBMC:
Steam Launcher|Music Party Mode|Reboot2oOS|Triple J Radio
(This post was last modified: 2013-07-26 02:57 by teeedubb.)
find quote
seftongillis Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #9
That's as practical as it gets, but I was hoping to be able to display it onscreen.
find quote
teeedubb Offline
Donor
Posts: 2,350
Joined: Mar 2010
Reputation: 58
Location: Down Under
Post: #10
You don't mention which platform youre using, but maybe an external image viewer program that can display over xbmc?

My Add-ons, only available for XBMC:
Steam Launcher|Music Party Mode|Reboot2oOS|Triple J Radio
find quote
seftongillis Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #11
Hmm... that'll probably do. Thanks!

Windows 7, by the way.
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 6,355
Joined: Jul 2010
Reputation: 111
Location: USA
Post: #12
I printed out new button labels using self-adhesive label stock and cut them out and placed them over the imprinted labels on my remote. This way, they're right where they need to be seen by anyone who picks up the remote. Not pretty, but effective.
find quote
seftongillis Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #13
It's effective alright, and while it may not be pretty, at least it's better than using tape. Thank you.
find quote