2024-03-01, 19:52
(2024-03-01, 19:46)ashlar Wrote:So I got it to enter the Context Menu but I don't know if this is going to work. It seems some have more items in the context menu (like if it has to option to resume) and even ones that seem alike it sometimes doesn't go down the right amount of steps.(2024-03-01, 19:20)Mibuix0r Wrote:Have you tried with default skin? Just to check.(2024-03-01, 19:00)ashlar Wrote: So you could use the ActivateWindowAndFocus built in command in your keymap.xml fileHeh, well when I set it to open the context menu with ActivateWindow or ActivateWindowAndFocus I get a mostly blank context menu https://imgur.com/a/tWyWtlC
ActivateWindowAndFocus(10106,id2,item1, id3,item2) as seen here: https://kodi.wiki/view/List_of_built-in_...built-in's
10106 is Contextual Menu. How to focus on playusing, etc... it's down to experimenting with the other parameters, which I don't know how to use. If you could combine two actions or more, you could open the contextual menu, focused on Play using... and then maybe have the OK press simulated in order to access the list of players with just one button.
Code:
import xbmc, xbmcgui
#sequence of actions
xbmc.executebuiltin('Action(ContextMenu)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
#xbmc.executebuiltin('Action(select)')