It doesn't appear your notebook keyboard has dedicated buttons for Home/End and PgUp/PgDn (the photos are small and I can't read the German(?) labels on the keytops). The problem is that toggling the NumLock doesn't change the key presses on the numeric pad as far as XBMC is concerned. For example, pressing the number 7 on the keypad sends numpadseven, regardless of whether or not NumLock is enabled.
You can map other keys to perform the desired actions. One option is to remap the numeric pad 1, 3, 7, and 9 keys to perform the actions of the "real" End, PgDn, Home, and PgUp keys respectively. However, if you do this, this will mean you won't be able to use the numpad to enter the numbers 1, 3, 7, and 9 in XBMC; instead, you will have to use the number keys on the top row of the main section of your keyboard to type numbers. An alternative is to assign these actions to some other unused keys, such as F1-F12.
Insert the following lines (from <global> to </global>, inclusive) into the keyboard.xml file you had previously created:
Code:
<keymap>
<global>
<keyboard>
<numpadone>LastPage</numpadone>
<numpadthree>PageDown</numpadthree>
<numpadseven>FirstPage</numpadseven>
<numpadnine>PageUp</numpadnine>
</keyboard>
</global>
:
: (Your previous statements)
:
</keymap>
This example remaps some of the numeric pad numbers to these actions. Change accordingly if you prefer to use some of the F1-F12 keys or some others.
Quote:Can I combine the code of zepo and your's, so e.g. pressing "b" creates a bookmark and pressing CRTL + b shows the bookmark window?
Yes.
Quote:And when pressing "b" could there be something like a confirmation sound / window, so I know the bookmark is really created?
Add the following statement to the bottom of your setbookmark.py script:
Code:
xbmc.executebuiltin('XBMC.Notification(Attention:, Bookmark added, 3)')