Reply to thread

Re: Yet another MPC remote with 'back' & 'green button' problem


Success! :D


So far I have only tested this on my test PC at work. It has XP and home I have win7, but it looks good! EDIT: It works on Win 7 also :)


Wiki

I have now added all this info to the wiki:

Generic Keyboard/Remote Input Plugin - MediaPortal Wiki


Back button: Generic Keyboard/Remote Input Plugin

  1. I installed "Generic Keyboard/Remote Input Plugin", also called "KeyboardInputPlugin - Ruud Senden, SilentException", with MediaPortal Extension Installer ("C:\Program\Team MediaPortal\MediaPortal\MpeInstaller.exe)
  2. Start MediaPortal Configuration ("C:\Program\Team MediaPortal\MediaPortal\Configuration.exe") and go to Plugins > Keyboard Input Plugin > Config
  3. Imported Remote\MCE-Remote based mappings\Keyboard.xml
  4. Open Mappings - Generic Buttons - Back and click on Back (see no 1 in the picture under this ordered list)
  5. Click in the "Key:" text box (see no 2 in the picture under this ordered list) and then push the "Back" button on the remote. On my PC it now changes from None to Back (in "Key:" text box, see no 2 in the picture under this ordered list)
  6. Click on the Save & Close button


Windows button: AutoHotkey


  1. *** First I check what the Windows button sends to the PC
  2. Start MediaPortal Configuration ("C:\Program\Team MediaPortal\MediaPortal\Configuration.exe") and go to Plugins > Keyboard Input Plugin > Config
  3. Open any mapping to test Windows button (maybe Mappings - Generic Buttons - Back and click on Back (see no 1 in the picture above this ordered list)
  4. Click in the "Key:" text box (see no 2 in the picture above this ordered list) and then push the "Windows" button on the remote. On my PC it now say Alt+Win+Enter (in "Key:" text box). Write this down!
  5. Click on the Cancel button! Above was just a test, we do not want to save it! Generic Keyboard/Remote Input Plugin starts up AFTER MediaPortal has started, so it will not work when MediaPortal is not running. Thats why we need AutoHotkey (AutoHotkey - Wikipedia, the free encyclopedia)
  6. *** Now I will set up AutoHotkey to use the Windows button input to start MediaPortal
  7. Go to AutoHotkey Download and then install it (I used "Installer for AutoHotkey Basic")
  8. In the AutoHotkey.ahk script file I added this line (!#Enter = Alt+Win+Enter, info about key codes are from AutoHotkey Tutorial: Macro and Hotkey Creation and List of Keys and Mouse/Joystick Buttons for Hotkeys and Macros)
    [CODE]!#Enter::Run C:\Program\Team MediaPortal\MediaPortal\MediaPortal.exe[/CODE]
  9. Save and then start AutoHotkey
  10. Now the Windows button on the remote works for me, it starts MediaPortal


All other buttons: Generic Keyboard/Remote Input Plugin & AutoHotkey

With Generic Keyboard/Remote Input Plugin & AutoHotkey I'm sure I will get all button on my remote to work as they should, it may just take some time... Most button on the remote will probably work with Generic Keyboard/Remote Input Plugin, but if I get problems I'm sure AutoHotkey will help me fix the problems.


Thanks raffe for all help ;)


Top Bottom