2024-03-01, 19:11
You could also give a look at this post of mine. It's not doing the same thing you're trying to achieve, but it's similar enough that maybe there's a similar approach available for you.
https://forum.kodi.tv/showthread.php?tid...pid3155625
Note the use of script. I have a selectsubs.py script with the content listed in the above post, and I map the function with
in my keymap.xml
For you it could be:
To enter the window where you select the player to use (this for my skin, you obviously have to adapt to what you're actually seeing in the menus). According to how you have your players set up, you could add extra action to automate moving to the correct player in the list and then selecting it. At that point, with a single button press, you could have your "Play with MPC-HC" command.
https://forum.kodi.tv/showthread.php?tid...pid3155625
Note the use of script. I have a selectsubs.py script with the content listed in the above post, and I map the function with
Code:
<f9>RunScript(C:\tools\SelectSubs.py)</f9>
in my keymap.xml
For you it could be:
Code:
import xbmc, xbmcgui
#sequence of actions
xbmc.executebuiltin('ActivateWindow(contextmenu)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(select)')