Win keyboard.xml and key binding
#1
Hey

I'm trying to bind a d key to subtitles download menu but cannot get it to work. I have created a userdata/keymaps/keyboard.xml with content listed below:

<keymap>
<FullscreenVideo>
<keyboard>
<d>RunScript(script.xbmc.subtitles)</d>
</keyboard>
</FullscreenVideo>
</keymap>

But when I press the d key nothing happens. I'm trying to do this because after this works I can use my harmony remote + flirc combination so that i can use my remote to access the xbmc subtitles download menu.

Its like the keyboard.xml doesn't load and work, any thoughts?
Reply
#2
String was changed from Gotham ->
New string would be:
Code:
<d>ActivateWindow(SubtitleSearch)</d>
If I have helped you or increased your knowledge - please click the plus to the left below to give thanks
Reply
#3
Okey now the keyboard.xml content is this:

<keymap>
<FullscreenVideo>
<keyboard>
<d>ActivateWindow(SubtitleSearch)</d>
</keyboard>
</FullscreenVideo>
</keymap>

But still it doesn't work, d button does nothing Sad
Reply
#4
Have you tried adding a button for pause (besides P or spacebar)? If not, try it to test wether the keymap.xml is not loading at all, or the issue is more specific to the SubtitleSearch function.

Also, in settings -> input - try toggling the "remote control sends keyboard presses" option and see if it makes a difference.
If I have helped you or increased your knowledge - please click the plus to the left below to give thanks
Reply
#5
I tried this:

<keymap>
<global>
<keyboard>
<g>Pause</g>
</global>
<FullscreenVideo>
<d>ActivateWindow(SubtitleSearch)</d>
</keyboard>
</FullscreenVideo>
</keymap>

but even the g button does not pause the video. the remote control sends keyboard presses option was already enabled. So it seems like the keyboard.xml doesn't load or I have a error on it.
Reply
#6
You're missing two tags:
Code:
</global>
should be
Code:
</keyboard>
</global>

and

Code:
<FullscreenVideo>
should be
Code:
<FullscreenVideo>
<keyboard>

Please post your debug log so we can get more information if the correct file is loaded.
Need help? Check out my XBMC Frodo Guide. It contains full featured guides to Sickbeard and CouchPotato as well.

Image
Reply
#7
I did the alterations to the code, but still not working.

The code is now

<keymap>
<global>
<keyboard>
<g>Pause</g>
</keyboard>
</global>
<FullscreenVideo>
<keyboard>
<d>ActivateWindow(SubtitleSearch)</d>
</keyboard>
</FullscreenVideo>
</keymap>


Here is the debug log: Debug log
Reply
#8
The file is not being loaded, as it seems:
Code:
Loading special://xbmc/system/keymaps/keyboard.xml
is the only entry regarding keyboard.xml. That's a bug, as far as I can see.

Here is a tut on how to report a bug: http://wiki.xbmc.org/index.php?title=HOW...bug_report

In the mean time you could add your code to the predefined keyboard.xml in
C:\Path\To\XBMC\system\keymaps\keyboard.xml - that should do the trick for now.
Need help? Check out my XBMC Frodo Guide. It contains full featured guides to Sickbeard and CouchPotato as well.

Image
Reply
#9
Doesn't work even in that folder

Though I'm no sure if I put the code in the right place
Reply
#10
I installed Gotham and gonna try with it
Reply

Logout Mark Read Team Forum Stats Members Help
keyboard.xml and key binding0