Kodi Community Forum

Full Version: keyboard.xml questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I just got a new Remote and now I am playing with the keyboard.xml to make the setup the way I need/want it to be.
I do have some small questions you might be able to help me with.

1. I'd like to change the following calls:
Code:
<f3 mod="shift">ActivateWindow(video)</f3> --> should directly go to TV (database mode)
<f4 mod="shift">ActivateWindow(video)</f4> --> should directly go to Movies (database mode)
<f5 mod="shift">ActivateWindow(video)</f5> --> should directly go to file mode

2. I'd like to have one button:
Code:
<f6 mod="shift">NoClueWhatItIs</f6>
--> when I click it, already seen episodes/movies get hidden. Click it again they are shown again. Some kind of toggle command I guess.

I hope I can present a nice layout for the Nyxboard soon and let all of you enjoy my work.


Greetings,
Christian
OK,

I was able by studying other xml's to solve my 1st problem:

Code:
<f3 mod="shift">ActivateWindow(Videos,Files)</f3>
<f4 mod="shift">ActivateWindow(Videos,MovieTitles,return)</f4>
<f5 mod="shift">ActivateWindow(Videos,TVShowTitles,return)</f5>

The 2nd question still remains though. I hope for some input.

THX
I'm not entirely sure, but I imagine you'd be looking for the Container.SetViewMode(id) function, but I just tried to find a list of ID options and their use without any luck. I could be out to lunch, but in my mind that would be the function you'd be looking at... Hopefully someone a little more knowledgeable could help you further, but in the meantime if you want to explore that option, hopefully it helps you out. A full list of available Functions can be found at http://wiki.xbmc.org/index.php?title=Lis..._Functions
(2012-04-03, 23:02)chschierhorn Wrote: [ -> ]2. I'd like to have one button:
Code:
<f6 mod="shift">NoClueWhatItIs</f6>
--> when I click it, already seen episodes/movies get hidden. Click it again they are shown again. Some kind of toggle command I guess.

I hope I can present a nice layout for the Nyxboard soon and let all of you enjoy my work.


Greetings,
Christian
Christian,

Not positive that this will work, but you could try
PHP Code:
<f6 mod="shift">System.SetBool(myvideos.watchmodemovies)</f6

There is also a corresponding entry in guisettings.xml in the <myvideos> section of the file for TV Shows and Music Videos. As I said other than trying to change the setting thru the "view-as" menu and seeing the change in this file, not 100% sure that the SetBool is allowed for non skin booleans. Give it a go and report back the results.

Wyrm (xTV-SAF)