Generic Keyboard/Remote Input Plugin (2 Viewers)

Mercbac

Portal Pro
March 20, 2007
133
5
Home Country
Sweden Sweden
So I started browsing the source code for this plugin and found the following bit of code:

if (_basicHome)
msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW, 0, 0, 0, (int)GUIWindow.Window.WINDOW_SECOND_HOME, 0, null);​
else
msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW, 0, 0, 0, (int)GUIWindow.Window.WINDOW_HOME, 0, null);​


The boolean variable _basicHome is explicitly set to 'false' twice in the code, but is never set to either 'true', or even another variable that might have a value of 'true'. So this effectively means that the plugin won't allow jumping straight to the Basic Home screen (WINDOW_SECOND_HOME), but only to the regular Home Screen. Of course I could try to compile it with a tweak to fix this, but then I'd first have to figure out which parts of the MP code I need to download before I can compile the plugin (as the plugin is referring to parts of the MP code).

But more interesting would be to know why Basic Home is explicitly blocked from being "jumped to" with a key combination....
It looks as if there's some plan to make it possible to jump to Basic Home, but since there's no way to get the _basicHome variable set to 'true' it won't work. Unless of course I have missed something, but I did 'grep' the entire source dir and all subdirs for "_basicHome" and found no lines that could possibly set it to 'true'.
 

nmt1978

Portal Pro
October 14, 2008
95
1
I have an Yaocoo remote and this little plug-in works like a charm to me. I can easily control Medial Portal except the below two things:

- Green button can't start MP (event i use MPtray...)
- the remote can't control external player like MPC.

Please anyone tell me how to use this remote with external player. I already use EventGhost but it's not workable. EvenGhost seems to work only with genuis MCE remote, not the off-brand like Yaocoo.
 

zilexa

Portal Pro
October 22, 2008
151
6
Home Country
Netherlands Netherlands
If disaster has a working mapping with Imon's rc, perhaps it's a good idea to include it in the plugin zipfile :)
 

Harmani

MP Donator
  • Premium Supporter
  • October 13, 2008
    97
    5
    Home Country
    Netherlands Netherlands
    Keystrokes are delayed in windows

    I have mediaportal running on my living room-pc, which is also used for internet, office etc by my girlfriend. Mediaportal starts on the secondary screen, a connected LCD-tv.
    This very much appreciated plugin is the only way to get my Intervideo XP-RC01 remote to work with mediaportal, while it acts as a HID device. But since i did a fresh install it causes me problems:

    While Mediaportal is active in the background, with this plugin enabled, all normal keystrokes from my keyboard are delayed in windows! When typing, it's like the letters are appearing one by one with a small delay between them (like 1/3 sec) so very annoying :rolleyes: With the plugin disabled in config everything works fine..

    Any idea what could be causing this?
    I use Mediaportal 1.0 and the latest version of this plugin on the following hardware: AMD X2 4400+ with 2gb DDR2 and a HD4550

    On my previous install there was no problem at all. Which was Mediaportal RC 2, the version from the startpost and much older hardware: P4 3,2ghz 736mb DDR and an old Radeon 9600 (AGP).
     

    zilexa

    Portal Pro
    October 22, 2008
    151
    6
    Home Country
    Netherlands Netherlands
    Here is a zip with all the stuff you need.

    Explanation:
    KeyBoardInputplugin.dll => Programdir\Team MediaPortal/MediaPortal/Plugins/process
    Keyboard.xml => AppDataDir\Team MediaPortal/MediaPortal/InputDeviceMappings
    default.key => AppDataDir\SOUNDGRAPH\Imon\Setup

    Then add a new Program (Mediaportal.exe) to your/ in your imon Software and import all functions und settings from my .imo File.

    => Have Fun!

    zSHARE - imon.zip

    I think there are 2 typos in your explanation? Fixed it as I think it should be:

    Explanation:
    KeyBoardInputplugin.dll => Programdir\Team MediaPortal/MediaPortal/Plugins/process
    Keyboard.xml => Programdir\Team MediaPortal/MediaPortal/InputDeviceMappings
    default.key => AppDataDir\SOUNDGRAPH\Imon\Setup\iMON PAD

    I am going to test!
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    Hi!

    You're right with the default.key - but you're not right with the keyboard.xml :) perhaps the folder under appdir is onl crreated when you start the keyboardinputpluing config for the first time or so. THe other keyboard.xml in programdir is the default one of MP itself. You shouldn't overwrite it.
     

    zilexa

    Portal Pro
    October 22, 2008
    151
    6
    Home Country
    Netherlands Netherlands
    OK thanks, I tried last night but importing .imo file always gives me the warning "... that were in use were not mapped" or something like that. I'll restore the overwritten keyboard.xml and wil place your keyboard.xml in the correct appdata folder and try again. If it's no luck I'll try installing an older version of Imon.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    I'm using the newest Imon Version 7.40. Normally you get the error Message, when you've not: "stopped IMon - placed default.key in the correct place - restart Imon - THEN Import"
     

    zilexa

    Portal Pro
    October 22, 2008
    151
    6
    Home Country
    Netherlands Netherlands
    Ok so I did as you say... but I did notice that in the Application Data of All Users, there is a Team MediaPortal folder (and the Soundgraph folder) but in the Application Data folder of my user account there is only a Soundgraph folder. So I guess you mean All Users\Application Data.

    Here is the strange thing, I still got that error (every method I tried, also the one from Geekzone.net, I got this message). BUT (believe it or not) it seems the PLAY/PAUSE/STOP/FFW/REWIND buttons finally work, but definetely not in a usable way. I have to press PLAY for several seconds. I have to press PAUSE exactly a number od seconds to PAUSE, otherwise it won't pause or will pause and unpause.

    I have to press VOL+ like 6 seconds before I get response. MUTE even longer.

    The D-pad and ENTER button work immediately though :confused:

    offtopic
    Will test further in the morning. I am getting very depressed becauseI have the Silverstone ML02 wich has an external laptop-like power unit, but there is also a small internal part in the case. As soon as there is load on the CPU and C'n'Q raises the voltage, the internal part of the PSU makes a VERY annoying buzzing/beep. Can't watch movies this way... If Silverstone asks me to return the entire case I am going to cry and never do HTPC anymore. Had so much trouble with 780G & HDMI connection, video card not stable, even switched from Gigabyte to Asus mainboard. Then Mediaportal issues. Now that the RC starts to work, the PSU internal part starts to make very annoying sounds :(
     

    Users who are viewing this thread

    Top Bottom