LibreELEC two commands on one keypress

  • Hi,

    I am using FLIRC to use LibreElec with and older Harmony Remote.

    This works fine but one thing is annoying me.

    When I watch LiveTV and press the "BACK" button on the remote, I want kodi to behave like I pressed "stop" and then "back".

    I am searching for a way to send two commands by just pressing one remote button.

    I do not want videos or live tv to go on playing in the background.

    I have installed the keymapper plugin already but I can only remap one button to another there but not add two commands.

    I've also read the kiki and found this:

    Code
    <key id="123">action</key> -- id is the keys keycode. >

    and wonder if there is something like

    Code
    <key id="123">stop,back</key> -- id is the keys keycode. >

    too?

    Kind regards

    sparky

  • Code
    <keymap>
        <FullscreenVideo>
            <keyboard>
                <backspace>Stop</backspace>
            </keyboard>
        </FullscreenVideo>
    </keymap>

    otherwise try this..you ll have to press same button twice,,one long press and one normal press..

    Code
    <keymap>
         <FullscreenVideo>
             <keyboard>
                 <key id="123">stop</key>
                 <key id="123" mod="longpress">back</key>
             </keyboard>
         </FullscreenVideo>
    </keymap>

    Edited once, last by Mario77 (May 23, 2020 at 5:23 PM).

  • Sorry that's not what I want.

    I am using LibreElec to bring LiveTV in a room where I have no other option.

    Old TV+LibreElec does the job.

    Problem is that the device should be handled by my 80year old dad and he does not understand "short press"-"long press" options.

    He is used to a good old fashion way switching channels. Buttons should behave like on his old tv.

  • If you are using LE with PVR and want to go back to tv channel list while watching something just map a key to

    Code
    <keymap>
        <FullscreenLiveTV>
             <keyboard>
                <key id ="123">XBMC.ActivateWindow(PVROSDChannels)</key>
             </keyboard>
        </FullscreenLiveTV>
    </keymap>

    Otherwise the previous first keymap should work for you..did you try it?

  • Hi Mario77, thanks for the answer.

    What is the KeyID of the "back" button?

    When I use the key remap addon it does not give me an ID while pressing the button on the remote.

    How can I get it because I guess that "123" is just an example :D

  • Hi Mario77, thanks for the answer.

    What is the KeyID of the "back" button?

    When I use the key remap addon it does not give me an ID while pressing the button on the remote.

    How can I get it because I guess that "123" is just an example :D

    That's because back key is probably hard coded like ex volume buttons..and not all remotes has same id for the same button. hence the back command instead of the key id...try it like that first.

  • you can also use keymaper add on on kodi to do this, its easy to setup and it works with most of remotes , for me it's working very good

    Dont't think that will work for 2 commands on 1 keypress..great addon tough..makes life easier ;)