key bind/ shortcut to Music Library

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bricktop Offline
Senior Member
Posts: 115
Joined: Sep 2011
Reputation: 1
Location: UK, Cornwall
Post: #1
how would i set a key bind to my music library please ?

thanks
find quote
DaVu Offline
Team-Kodi Member
Posts: 2,803
Joined: Jan 2011
Reputation: 53
Location: Germany
Post: #2
I assume you are talking about how to do that for a remote.

Generally you are able to use a button and call an in built python function:

Code:
ActivateWindow(10502)

The window-ID "10502" is for the musiclibrary,

This wiki might be helpful, too: Keymap (wiki)
find quote
bricktop Offline
Senior Member
Posts: 115
Joined: Sep 2011
Reputation: 1
Location: UK, Cornwall
Post: #3
no im after being able to press a key on my keyboard and it takes me to the Music/Library/Artist

from a global point so no matter where i am in kodi one key will take me there, it seems like it should be easy thing to do but been trying for a while and im stuck!
find quote
bricktop Offline
Senior Member
Posts: 115
Joined: Sep 2011
Reputation: 1
Location: UK, Cornwall
Post: #4
any advice on this please?
find quote
bricktop Offline
Senior Member
Posts: 115
Joined: Sep 2011
Reputation: 1
Location: UK, Cornwall
Post: #5
ive built a jukebox and i want it to have minimal controls to make it easy for people to use theres quite a few elderly people that would be using it

originally there was to many buttons and i found people would navigate away from the music library and get stuck/lost

the new jukebox will only have 4 buttons (the blue buttons in the picture, the blue button on the left which was back will be obsolete)

up, down, enter and the button far right which if possible would be select and also a short cut into Music/library/artist

so the user would select artist, select album and then using the far right button select song and at the same time kodi would jump back into Music/library/artist

making it very easy to use and impossible to navigate away from the library

i just cant figure out how to create the shortcut key to Music/library/artist

ive tried the key map editor which looks like it should do exactly what i want it to do but when set up nothing happens

[Image: 4oXnX8a.jpg]
find quote
bricktop Offline
Senior Member
Posts: 115
Joined: Sep 2011
Reputation: 1
Location: UK, Cornwall
Post: #6
Is there no one willing to add anything?
find quote
DaveBlake Offline
Team-Kodi Member
Posts: 2,451
Joined: Jun 2015
Reputation: 68
Location: South West England
Post: #7
I would guess that asking a question that is not RPi specific in the Pi forum isn't going to get your question the right audience for an answer. Would you like me to move the thread?
find quote
bricktop Offline
Senior Member
Posts: 115
Joined: Sep 2011
Reputation: 1
Location: UK, Cornwall
Post: #8
(2017-07-20 14:39)DaveBlake Wrote:  I would guess that asking a question that is not RPi specific in the Pi forum isn't going to get your question the right audience for an answer. Would you like me to move the thread?

Yes please DaveBlake that would be appreciated
find quote
DaveBlake Offline
Team-Kodi Member
Posts: 2,451
Joined: Jun 2015
Reputation: 68
Location: South West England
Post: #9
Moved to Independant subforum, where it may have more chance of being answered.

@Bricktop try searching for "keymap" too, that may have the answer. Or perhaps this gives some hints https://forum.kodi.tv/showthread.php?tid=235331
(This post was last modified: 2017-07-24 07:33 by DaveBlake.)
find quote
jjd-uk Offline
Team-Kodi Member
Posts: 6,359
Joined: Oct 2011
Reputation: 160
Post: #10
The answer to the original question was given in Post#2

You just need to assign the command to an used key in the global section of the relevant key map, to find out the command you need simple create a favourite that does the required action then check the favourites.xml file to see what the relelvant "ActivateWindow" is.
(This post was last modified: 2017-07-24 10:57 by jjd-uk.)
find quote
scott967 Offline
Posting Freak
Posts: 2,890
Joined: Jul 2012
Reputation: 91
Post: #11
I would use "ActivateWindow(music,artists,return)" and map it in the "global" section of the keymap file.

scott s.
.
(This post was last modified: 2017-07-24 21:59 by scott967.)
find quote
DaVu Offline
Team-Kodi Member
Posts: 2,803
Joined: Jan 2011
Reputation: 53
Location: Germany
Post: #12
That's nearly exactly what I've explained in posting #2.. Or at least pretty similar.

@bricktop it's all in the wiki I linked. If you have problems with understanding, then pease ask specific questions and tell us the steps you have done till now.

Saying that it (what I have written) does not work, is unfortunately not correct. It will.
(This post was last modified: 2017-07-24 22:34 by DaVu.)
find quote