detect button press and use it in a Python script?
#18
I know this is kinda late, but maybe you can use the "onAction" callback:
Kodi Development page

Example:
python:
def onAction(self, action):
    log('Received Action: ' + str(action.getId()) + '\n', xbmc.LOGDEBUG)
    if action in (ACTION_PREVIOUS_MENU, ACTION_BACKSPACE, ACTION_NAV_BACK):
        # Do "Back" action
    if action in (ACTION_ENTER_KEY, ACTION_ENTER):
        # Do "Enter" action
Reply


Messages In This Thread
RE: detect button press and use it in a Python script? - by AvanOsch - 2021-05-19, 13:00
Logout Mark Read Team Forum Stats Members Help
detect button press and use it in a Python script?0