Ejemplo n.º 1
0
def main():
    if utils.isATV():
        utils.DialogOK(GETTEXT(30118), GETTEXT(30119))
        return False

    key = recordKey()
    if key < 1:
        return

    start = 'key id="%d"' % key
    end = 'key'

    utils.WriteKeymap(start, end)

    return True
Ejemplo n.º 2
0
def main():
    if utils.isATV():
        utils.DialogOK(GETTEXT(30118), GETTEXT(30119))
        return False

    key = recordKey()
    if key < 1:
        return

    start = 'key id="%d"' % key
    end   = 'key'

    if utils.WriteKeymap(start, end):
        xbmc.sleep(1000)
        xbmc.executebuiltin('Action(reloadkeymaps)')  
Ejemplo n.º 3
0
def main():
    if utils.isATV():
        utils.DialogOK(GETTEXT(30118), GETTEXT(30119))
        return False

    key = recordKey()
    if key < 1:
        return

    start = 'key id="%d"' % key
    end = "key"

    utils.WriteKeymap(start, end)

    return True