2011-02-05, 21:08
arad85 Wrote:No it isn't as that's what the key is defined as before it gets redefined. Basically, the xml definition that you suggested gets ignored by xbmc hence why I tried the other definition (after googling a bit).
The wrong window opens and is what the default for the key is without an override in the definitions file. As to debugging, you could define a key on your keyboard to run this - they should be equivalent defines once they work.
Looking at the debug, the script appears to be failing due to missing arguments (it fails on sys.argv[1]). I can't for the life of me work out how to pass arguments (which appear to be '0'. '') using the runscript command.
okay, I tried this out (thanks for the tip!). And the following works for me
Code:
<eight>xbmc.runaddon(plugin.video.iplayer)</eight>
Code:
<eight>runaddon(plugin.video.iplayer)</eight>
If this doesn't work, try copying your keyboard.xml file to /.xbmc/userdata/keymaps/ directory as opposed to the /system/keymaps/ directory. For some reason I couldn't get any changes I made to the keyboard.xml file in there to work.
iPlayer is not a script, it's an addon. There is a difference as to how it works, as an addon expects certain input arguments (thus the error here) and also expects XBMC to do something with it's output, which it wouldn't if it were treated as a script.