MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2008-06-02, 17:18   #61 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts

Country:


Default

I've read through all the documentation that I've found, as well as this entire thread, and I'm still as clueless as my fat aunt.

I've got Keyboard.xml and KeyboardInputPlugin.dll in their proper directories.
My remote is working fine, but I'd like to remap a few keys.

In the plugin documentation, it says:

Quote:
Optionally add button definitions and configure the button mappings by using the MediaPortal Setup program.
Huh?

If I open the setup program, I see a "Remote" category.
That category shows six tabs that appear to correspond to six brand name remotes. (I've got a cheap remote that I got off Ebay.)

There's a '+' next to remote. If I click on it to expand it, it lists:

USBUIRT
SerialUIR
WinLIRC
RedEye
Direct Input

I have no idea what any of these terms mean, but I can't find anything related to button mapping or button definitions anywhere in this configuration. It's like I'm using a different piece of software.

Could someone please take me step by step through reconfiguring a button on the remote to do something else? I'd be very appreciative.

If this could be done by simply editing Keyboard.xml, I'm all for that, but I could use a little advice on what to change where. Also, once I save the edited file, I assume that something has to be restarted to read in the new configuration?

Thanks for any help.
enchant is offline   Reply With Quote
Old 2008-06-02, 19:21   #62 (permalink)
Portal Member
 
Join Date: Jan 2006
Location: UK
Posts: 73
Thanks: 17
Thanked 1 Time in 1 Post


Default

Hi enchant, I tried to get help with this too but I think it's been given up as a lost cause, plus I think most things can be done now through the ShortCuter plugin - have you tried that?
armyofme is offline   Reply With Quote
Old 2008-06-02, 19:49   #63 (permalink)
Portal Member
 
Join Date: Mar 2008
Location: Southampton
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post

Country:


Default

I'm not able to give a definite step by step guide at the moment as I can't check this but from what I can remember:

1. Don't look in the remote section of the MP Setup, instead goto the plugins section and find the Keyboard Input Plugin - right click and ensure this is enabled before selecting the configuration option.

2. This should give a screen with 3 buttons, the 1st one takes you to where you can add or remove buttons. The 2nd button takes you to where you can configure the actions when the buttons are pressed. And I think the last one closes the config. Please refere back to post 57 as otherwise you may have problems
braman is offline   Reply With Quote
This User Say Thank You:
Old 2008-06-02, 21:44   #64 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts

Country:


Default

braman,

Thanks for the info!

There are so many possible places to go that it's easy to overlook what you actually need. I'll give this a try.

Quote:
Originally Posted by braman View Post
goto the plugins section and find the Keyboard Input Plugin - right click and ensure this is enabled before selecting the configuration option.
I did that and it IS enabled. After making changes, the file was saved into the custom (rather than default) directory, so I moved it back in. My changes had no effect.

After making several more changes, I did a search for keyboard.xml and deleted all instances of it. Mediaportal still came up, and my remote continued to work. So it appears that it's simply not reading the keyboard.xml that I'm editing, and since it's not generating an error, I have no idea where it's looking for it.

keymap.xml was deleted some time ago, so where is Mediaportal getting its keymap info from??

Last edited by enchant; 2008-06-02 at 23:18. Reason: Automerged Doublepost
enchant is offline   Reply With Quote
Old 2008-06-02, 23:34   #65 (permalink)
Portal Member
 
Join Date: Mar 2008
Location: Southampton
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post

Country:


Default

Did you read and take into account Post 57 in this thread?

Since RC1 it should be looking in C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\InputDeviceMappings for the keymap.xml file.

Last edited by braman; 2008-06-02 at 23:46.
braman is offline   Reply With Quote
Old 2008-06-03, 00:07   #66 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts

Country:


Default

Yes, I did. I noticed that it saved the file in the "custom" directory, rather than "default". So I copied it back.

I think it makes things a lot easier if I simply edit the file with a text editor. This is the edit that I make:

Changing this:
Code:
<button name="Mute" code="119">
  <action layer="0" condition="*" conproperty="-1" command="ACTION" cmdproperty="9982" sound="click.wav" />
</button>
to this:
Code:
<button name="Mute" code="83">
  <action layer="0" condition="*" conproperty="-1" command="ACTION" cmdproperty="9982" sound="click.wav" />
</button>
Because I want it to transmit the 's' key when I hit the mute button.

Perhaps I simply need to know where Mediaportal will read it from.

Msg #57 says:
Quote:
When configuring this plugin the 'Add/Remove Buttons' section saves the Keyboard.xml config file to the old location for application data (C:\Program Files\Team MediaPortal\MediaPortal\InputDeviceMappings\custom ). The Update Mapping' section however modifies the file in the new location (C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\InputDeviceMappings). Hence to add new buttons and configure the mapping I have to first add the buttons, then copy the Keyboard.xml file from the old location to the new locations, and then update the mapping.
I haven't been using the "Update Mapping" button. I tried it and didn't see anything constructive that I could do, and since I couldn't find any help on it (in this thread), I figured perhaps I shouldn't muck with it.

But I don't have a directory
C:\Documents and Settings\All Users\Application Data\Team MediaPortal

I have Mediaportal installed here: e:\program files\MediaPortal
Where should Keyboard.xml reside? It's currently here:
e:\program files\MediaPortal\InputDeviceMappings\defaults
Once I make my edits, does some other file need to be updated?

Last edited by enchant; 2008-06-03 at 00:09.
enchant is offline   Reply With Quote
Old 2008-06-23, 14:49   #67 (permalink)
MP Donator
 
Join Date: Aug 2007
Posts: 56
Thanks: 6
Thanked 4 Times in 2 Posts

My System

Default

Hi all,

can someone please tell me how to configure it like this:

- if no media is playing - > TV Guide (no overlay, >TVGuide is the main windows)

- if media is playing - >TV Guide (as overlay with media playing in the background)

I don't find the right settings and it's really time consuming to test through all the options.


ATM this is working: All Layers -> No condition -> Window "TVGuide"

for your help!
__________________
(\__/)
(O.o )
(> < )
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
mmf1981 is offline   Reply With Quote
Old 2008-06-23, 21:26   #68 (permalink)
Portal Member
 
Join Date: Mar 2007
Posts: 96
Thanks: 6
Thanked 1 Time in 1 Post

Country:

My System

Default

Quote:
Originally Posted by enchant View Post
Perhaps I simply need to know where Mediaportal will read it from.
Hi Enchant

I have this plugin running successfully, mostly because I was never able to get the Shortcuter plugin to work for me. In your case the main problem seems to be finding out where MP is trying to read the "keyboard.xml" file from. The trick that I have used many times in trying to find out what MP was doing is to use Process Monitor. It's a free tool that you can easily find with Google. Just set it to filter out all events so that it only shows you events on the parameter "path", containing "keyboard.xml", then start MP with Process Monitor in the background and the plugin enabled. If you then exit MP again, you should have an entry in Process Monitor telling where MP was trying trying to read the file from.

Regarding the layers and conditions, I never figured out how that works, but I use this plugin to map shortcuts to things like TV series, recorded TV etc. to "CTRL-ALT + any letter" keyboard shortcuts, and those shortcuts are produced by my iMon remote driver.

As far as setting things up I never used the config tool for the plugin in the normal way because it kept crashing on me. I only used it to figure out which numeric code had to go in the XML file for any given key-combo. It shows that live somewhere in the tool whenever you press a key. Then I just edited the XML file in notepad.

If you need any more info, just let me know.
Mercbac is offline   Reply With Quote
Old 2008-10-07, 00:21   #69 (permalink)
Portal User
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts


Default Double movement in Spresso clicks

Hi buddy,

thanks for this code its brilliant. I have an S-presso I used with mythtv for some time and now decided to give mediaportal a go. I was hoping you could clarify this clashing issue of the S-Presso remote. I have tried to disable all HID devices etc, but no luck. Left and right presses on the remote jumps two moves at a time. Clearly you had this too, but unfortunately I can't seem to figure out what else to do to fix this!

Cheers

F:
thx:

Quote:
Originally Posted by rsenden View Post
Hello Everybody,

I haven't been very active in this forum lately, although I'm still using MediaPortal together with my KeyboardInputPlugin daily. It is nice to see that quite a few people are using this plugin, even for remotes that this plugin wasn't originally intended for (I originally created this plug-in for the Asus S-Presso remote).

I'm currently unable to maintain the plug-in due to lack of time and lack of development environment (I switched to Linux on my main PC). So if anybody wants to update the plug-in, for example to work correctly with MP 1.0.0 RC1, Vista, to support additional key mappings (Win-key and such) and solve other problems, please feel free to do so. The source code is included for that reason ;-).

Kind regards,
Ruud Senden.
fyford is offline   Reply With Quote
Old 2008-10-07, 17:21   #70 (permalink)
Portal User
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi Rsenden, sorry for the bother, I found it. It was under the local setting folder and not in the 'Program files' folder. I just deleted the duplicate file and it all works sweet now! Now I'll just have to find a way to stick 2x drives in that teeny S-presso box and Raid them... might have to go with 2.5" ones
fyford is offline   Reply With Quote
Reply

Bookmarks

Tags
generic, input, keyboard or remote, plugin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generic Streaming Media Plugin or protocol system... simex Improvement Suggestions 3 2006-10-20 05:28
Virtual keyboard with cell phone input style masali Improvement Suggestions 1 2006-03-28 16:50
Clan Messages Reader plugin...generic layout for every skin? BigCheese Plugins 6 2006-02-16 00:33
Using generic remote as MCE remote anything General Support 7 2005-12-12 09:47
Skinnable virtual keyboard and maybe predictive input Smirnuff General Development (no feature request here!) 32 2005-04-23 14:05


All times are GMT +1. The time now is 09:49.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden