Generic Keyboard/Remote Input Plugin (2 Viewers)

minute

New Member
October 21, 2008
3
0
Hello, I want to ask if it is any way that I can keep pressed a button and the command key is sent multiple times. What I mean... I have a large list of files.. maybe 150 directories and when I navigate true them it is difficult to press the remote button 150 times (ok, 75 times if I want to go in the middle) and I want to know if there is a way to press and keep pressed the remote button and (like the television changing channels) it navigates in to the files.
 

testimies

Portal Pro
October 12, 2007
62
3
Espoo
Home Country
Finland Finland
k, here it goes..

enjoy
Hi SilentExcept

Thanks for your fixed dll. Unfortunately it didn't help. KeyboardInputPlugin still captures certain keys. For example Stop & ESC aren't working any more. So there are no changes to original version.

Has anyone else tried this dll? Do you have similar problems or are they fixed by this dll?
 

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    k, here it goes..

    enjoy
    Hi SilentExcept

    Thanks for your fixed dll. Unfortunately it didn't help. KeyboardInputPlugin still captures certain keys. For example Stop & ESC aren't working any more. So there are no changes to original version.

    Has anyone else tried this dll? Do you have similar problems or are they fixed by this dll?

    can you give me more info on what config you are using? and what are you trying to do..

    you could attach keymap.xml and Keyboard.xml here, i'll take a look..
     

    testimies

    Portal Pro
    October 12, 2007
    62
    3
    Espoo
    Home Country
    Finland Finland
    Hi

    As you can see from my system, I have vista & RC4.

    I have remote with all the usual buttons play, stop, pause.. After RC4 and new version (and also your dll) of this plugin, some of these have stopped working. I can't for example stop watching videos just by pressing it from remote because nothing happens then.

    I would like to use this plugin to map some shortcuts (tv guide, home, tv, my videos) to my remote.

    What does this keymap.xml do? I haven't previously touched it. I only have edited Keyboard.xml. I removed my old Keyboard.xml and made very simple version with just tv guide shortcut. Still doesn't work..

    Br, Testimies
     

    testimies

    Portal Pro
    October 12, 2007
    62
    3
    Espoo
    Home Country
    Finland Finland
    Btw, I use eventghost to catch and change some of my remote's buttons, including tv guide button but excluding stop button. It changes the original code of the button to Ctrl+Alt+Something.. I think it shouldn't affect anything but I thought I should mention it anyway.

    And tv Guide button IS working with mine Keyboard.xml but some other basic buttons aren't..

    Is Eventghost unneccessary with new version of this plugin?

    Br, Testimies
     

    FunkyMunkey

    Portal Member
    December 4, 2008
    39
    1
    Leeds
    Home Country
    England England
    Hi,

    I'vre tried using this and everything is fine exept for inputting numbers in MediaPortal

    When I press a number (for example if i want to change the TV channel to "1"), it causes MediaPortal to crash. It's the same whether I press the button on the keyboard or the remote.

    I get this same behaviour if I use a command that hasn't yet been mapped to a remote button.

    If I add a new buttton definition of "Remote Button 1" and set it up to perform the action "remote 1", MediaPortal doesn't crash, but neither does it respond to the command.

    Have you got any idea what is going on? I'd really appreciate any help, becuase other than that, the plugin is exactly what i'm looking for!
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Hi

    As you can see from my system, I have vista & RC4.

    I have remote with all the usual buttons play, stop, pause.. After RC4 and new version (and also your dll) of this plugin, some of these have stopped working. I can't for example stop watching videos just by pressing it from remote because nothing happens then.

    I would like to use this plugin to map some shortcuts (tv guide, home, tv, my videos) to my remote.

    What does this keymap.xml do? I haven't previously touched it. I only have edited Keyboard.xml. I removed my old Keyboard.xml and made very simple version with just tv guide shortcut. Still doesn't work..

    Br, Testimies

    keymap.xml is original mediaportal keyboard file..

    Btw, I use eventghost to catch and change some of my remote's buttons, including tv guide button but excluding stop button. It changes the original code of the button to Ctrl+Alt+Something.. I think it shouldn't affect anything but I thought I should mention it anyway.

    And tv Guide button IS working with mine Keyboard.xml but some other basic buttons aren't..

    Is Eventghost unneccessary with new version of this plugin?

    Br, Testimies

    this version of the plugin uses keyboard hook but it was not implemented correctly so eventghost couldn't even see the keystrokes while mediaportal was active. check if you can using vista (i'm on xp)..maybe that's the problem..

    meanwhile i've fixed keyboard hook problem and few others, and made this debug version of the plugin:

    after testing the keystrokes (working and non working), give me your mediaportal.log file.
     

    testimies

    Portal Pro
    October 12, 2007
    62
    3
    Espoo
    Home Country
    Finland Finland
    Hi

    I tested this plugin without eventghost and found out that it cannot catch button presses without eventghost first changing them to ALT+CTRL+something.

    I also tested with your new version. It didn't help.

    I put Mediaportal.log here. What I did was following. Start mediaportal. Press tv guide shortcut from remote. It went to tv guide. Then I pressed back button from remote that has used to.. well, go one step back. It has previously worked without defining it in this plugin (or previous versions of it). It didn't go back. Instead it changed current time in timeline of tv guide to 166 or 66. It was 18:00. :confused: That was wierd. After disabling this plugin back button works fine. (not in this log file)

    btw, thanks for helping..
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    hm, from the looks of it, you use ctrl+shift+browserback button for back in mediaportal, right?

    browserback keycode is 166

    keyboard hook from this plugin catches that keypress but sendkeys function cannot forward it to mediaportal so it forwards it as keycode numbers instead..

    i'm afraid that you'll have to map this using this plugin keyboard.xml but i'll try fix it (if it's possible)
     

    testimies

    Portal Pro
    October 12, 2007
    62
    3
    Espoo
    Home Country
    Finland Finland
    That is possible. I haven't checked what are the codes for buttons. They have just worked straight out of the box. (My remote is Gyration's media center remote)

    So there are problems with all ctrl + shift + .. combinations and this plugin? Or is this related to browserback button? It would be nice if buttons that works without this plugin would work also with this plugin.

    I will try to map those buttons. There isn't that much buttons..

    I wonder what kind of system eventghost uses when it catches button presses that this plugin doesn't. That would be another nice feature, if we could get rid of it.
     

    Users who are viewing this thread

    Top Bottom