2015-06-29, 03:05
I used the Keymap Editor addon to find out exactly what Key ID my delete button is on my keyboard. It is 61575. I am trying to map that key id to run a certain function. I found the gen.xml file in my /userdata/keymaps folder so I thought I would just add the following function
<key id="61575">RunScript("/home/osmc/.kodi/userdata/switch.py")</key>
Unfortunately this is not working. Am I correct in adding it to the gen.xml file? Is it supposed to go somewhere else?
To debug, I ran `python /home/osmc/.kodi/userdata/switch.py` and the function worked as expected. Is RunScript() deprecated?
Thanks in advance for the help!
<key id="61575">RunScript("/home/osmc/.kodi/userdata/switch.py")</key>
Unfortunately this is not working. Am I correct in adding it to the gen.xml file? Is it supposed to go somewhere else?
To debug, I ran `python /home/osmc/.kodi/userdata/switch.py` and the function worked as expected. Is RunScript() deprecated?
Thanks in advance for the help!