Keymaps - one button to perform task twice? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59) +---- Thread: Keymaps - one button to perform task twice? (/showthread.php?tid=313807) |
Keymaps - one button to perform task twice? - R.O.H.3000 - 2017-05-06 Hi, my OS is Windows 10. I am using an Xbox One Elite Controller. I adjusted the joystick.xml in userdata and almost everything works as I need it. Except for one thing: Is there a way to assign one action twice to a single button? Without having to push it twice. Because pushing down twice leads to the fanart being shown when I am browsing through my library. I'd like to press it just once as it has no other function in that area. This is the code for pressing down: Code: <down>Down</down> Any help is highly appreciated! Thank you 3000 RE: Keymaps - one button to perform task twice? - trogggy - 2017-05-06 I'd do that with a python script. There may be an addon to do the same thing, no idea. Script method... Open a new file in your text editor and paste the following: Code: import xbmc Now adjust your keymap to point to that script. In the section(s) you want this to apply replace Code: <down>Down</down> Code: <down>RunScript(special://masterprofile/doubledown.py)</down> Start kodi, check it works. RE: Keymaps - one button to perform task twice? - R.O.H.3000 - 2017-05-06 trogggy, it works Really enhances my experience. Plus I learnt how to use Python in Keymaps. Really awesome. THANK YOU SO MUCH! RE: Keymaps - one button to perform task twice? - trogggy - 2017-05-06 No worries. Glad it worked. |