Generic Keyboard/Remote Input Plugin (2 Viewers)

red_zebra

Portal Pro
September 1, 2009
70
46
Leipzig
Home Country
Germany Germany
Is it possible to configure the plugin in a way, that I can use my remote in SMS-style instead everytime there is an on-screen-keyboard for making an input (e.g. a search phrase or something like this)? Or is there any plugin which could do this?
 

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
Hi all,

Again a new version is available. In version 2.4.1.0 keyboard handling stayed the same, but I've made some enhancements and fixes to the plug-in configuration screen. Please let me know what you think about the changes. In addition, I added a default mapping that emulates the ShortCut'er plug-in. See history.html and first post in this thread for more details.

Kind regards,
Ruud

Is it possible to configure the plugin in a way, that I can use my remote in SMS-style instead everytime there is an on-screen-keyboard for making an input (e.g. a search phrase or something like this)? Or is there any plugin which could do this?

I don't think you can accomplish that with KeyboardInputPlugin, but I'll think some more about this. I'm also not aware about any other plug-in that can do this.
 

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
Hi all,

I've updated KeyboardInputPlugin again, current version is now 2.4.2.0. This version fixes a bug in the configuration screen, so if you're currently using version 2.4.1.0 it is wise to upgrade.

I've also further updated the configuration screen; main new functionality is a button to import a mapping XML file into your current mapping. Instead of having to select a default configuration upon installation, new users will now start with an empty mapping; they can then import any mapping they like. This allows you, for example, to configure KeyboardInputPlugin with both a remote control mapping and a keyboard shortcut mapping. It also makes the install process much easier, circumventing some problems with MPEI.

If you want to help with further development, here are some ideas:
  • README.HTML still needs to be updated to reflect latest configuration and installation changes.
  • A better help function would be welcome.
  • While selecting a file to import, it would be nice to see some information about the mapping file you're currently about to import. For example, the OpenFileDialog could have some side dialog that displays the info.txt for the currently selected file/directory. Also some hints which file to select if you're not sure (e.g. 'select MCE Remote based mappings if your remote is not listed').
  • Any other improvement suggestions?
 

WackyWookie

Portal Member
June 28, 2010
13
0
Home Country
Netherlands Netherlands
Wow, good to see this plugin is getting so much attention lately, has the keyboard hook deactivation problem been looked into yet? I still lose my bindings every now and then...
 

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
Wow, good to see this plugin is getting so much attention lately, has the keyboard hook deactivation problem been looked into yet? I still lose my bindings every now and then...

Can you give some more information? For example, do you need to restart MediaPortal in order for the plug-in to become active again, or will it re-activate after a few key presses (the latter is to be expected with the work-around that I implemented)? What do the logfiles say (with MediaPortal logging set to Debug)? I suppose this is with Windows 7?
 

WackyWookie

Portal Member
June 28, 2010
13
0
Home Country
Netherlands Netherlands
Wow, good to see this plugin is getting so much attention lately, has the keyboard hook deactivation problem been looked into yet? I still lose my bindings every now and then...

Can you give some more information? For example, do you need to restart MediaPortal in order for the plug-in to become active again, or will it re-activate after a few key presses (the latter is to be expected with the work-around that I implemented)? What do the logfiles say (with MediaPortal logging set to Debug)? I suppose this is with Windows 7?

Yup, Mediaportal needs a restart for the plugin to become active again... When the plugin stops, standard Mediaportal binds become active again because they're not being captured by the plugin anymore. The problem is kind of non reproducable, but i'll try firing up the debugger next time it happens... Win7 indeed...
 

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
Yup, Mediaportal needs a restart for the plugin to become active again... When the plugin stops, standard Mediaportal binds become active again because they're not being captured by the plugin anymore. The problem is kind of non reproducable, but i'll try firing up the debugger next time it happens... Win7 indeed...

I've done some more tests but cannot reproduce the problem you're describing. If you're seeing the problem again, please check whether your MediaPortal log file contains any 'KeyboardHandler seems to be inactive; restarting' messages...
 

cewillis

MP Donator
  • Premium Supporter
  • August 27, 2010
    327
    13
    Home Country
    United States of America United States of America
    Many thanks for your work on this plugin.

    I bought a generic remote on Amazon, which turns out to be a version of a HAMA remote. Several keys worked, some in unexpected ways, but many did not work at all. Since several hours of blindly searching (being a new MP user with a brand new HTPC that I just built) was getting me nowhere, and I was about to junk this remote and buy a 'certified' mce one.
    Now, using your plugin, almost all the keys are working right in less than an hour.
    Do you accept donations, in lieu of my buying a different remote?

    There are 2 keys for which I can't set the code, 'power, and 'i - info'.
    The power button is already doing what I want after changing some Power Management property settings, and when I press it (with focus in the Key field), the computer goes to S3 standby, as desired.
    With the info button, even though focus is in the Key field when I press the button, it brings up a right mouse menu instead of capturing the code. Any suggestions for that one?

    Thanks again.
    Cal
     

    rsenden

    Portal Pro
    August 22, 2006
    88
    108
    Rotterdam, NL
    Home Country
    Netherlands Netherlands
    Many thanks for your work on this plugin.

    There are 2 keys for which I can't set the code, 'power, and 'i - info'.
    The power button is already doing what I want after changing some Power Management property settings, and when I press it (with focus in the Key field), the computer goes to S3 standby, as desired.
    With the info button, even though focus is in the Key field when I press the button, it brings up a right mouse menu instead of capturing the code. Any suggestions for that one?

    Good to know the plug-in works quite well for you. Unfortunately, the plug-in is currently only able to intercept regular key press events, where-as your remote seems to emulate power button and mouse button events for the keys that you mention.

    I think I've read somewhere on these forums that some remotes have a key (or accompanying software) to switch between multiple modes, where in one mode the info/more button sends a right mouse button click, and in another mode sends a regular keypress. I'm not completely sure about this however; just did a quick search but couldn't find any relevant posts.

    If that doesn't work, you could just assign the info/more functionality to some button that you don't use regularly. Maybe I could add mouse button handling to the plug-in some time in the future if more people need it. Not sure though whether that's easy to do.
     

    Users who are viewing this thread

    Top Bottom