Posts: 193
Joined: Dec 2009
Reputation:
0
I have extra buttons on my remote and wanted to add a button that will update the library when pressed.
I have a XBMC remote app on my iphone that had a update feature, I like it cause I can run the update while watching a movie etc.
Can someone help me with this?
(Before I get told. I already have my library auto update after 2 hours, but some times I want to update it on the spot. I am also aware that I can go into the menu and run the update.)
Posts: 252
Joined: Jan 2009
Reputation:
1
Have you got your remote running by using jhsrennie or another similar reg file edited to make the remote send mce shortcuts?
If so, what button do you want to update the library. Open up showkey.exe and press the button to find out what code it is sending.
For example if you want the blue button to do it it sends <four mod="ctrl,alt">
Once you have this, create a keyboard.xml in your userdata/keymaps folder, put that code in, followed by XBMC.UpdateLibrary(Video) or XBMC.UpdateLibrary(Music), then close the line with <four> (just an example)
Overall, if you want the blue button to update the video library in any window, use this.
<keymap>
<global>
<keyboard>
<four mod="ctrl,alt">XBMC.UpdateLibrary(Video)</four>
</keyboard>
</global>
</keymap>
Posts: 193
Joined: Dec 2009
Reputation:
0
Sorry should have said. I followed this guide to get my harmony running via Media Center keyboard -http://forum.xbmc.org/showthread.php?tid=54466&highlight=harmony+300&page=2
I was thinking that it would be good to have it on the numbered keys on the top of my remote. I guess I just need to add something so that the update gets linked to a letter on the keyboard. I can then map that to the remote.
Posts: 193
Joined: Dec 2009
Reputation:
0
I think that we my be crossing wires here.
My remote is setup to just emulate keyboard presses from a MCE keyboard. So the location that you are giving me does not exist. I also have no need to run Showkey any more as I already know that the button is just emulating a keyboard and pressing the "U" Key on the keyboard as it was.
So am I still meant to update this location? Maybe I have to create the file first?