XBMC Community Forum
[RELEASE] MCERemote Addon - MCE Remote Control Plugin for XBMC on Windows - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] MCERemote Addon - MCE Remote Control Plugin for XBMC on Windows (/showthread.php?tid=81687)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


- kulprit - 2010-09-30 01:24

First of all, if you were using eventghost, open the mce remote plugin section at the top of it and untick "Disable HID service". Then exit the program (can also stop it booting at startup if you are serious about getting rid of it)

Alright guys, did you copy the new keyboard.xml from the trac ticket (http://trac.xbmc.org/browser/branches/Dharma/system/keymaps/keyboard.xml) to your

Program Files\XBMC\System\keymaps folder?

Download the 0.05 pack from http://xbmcmce.sourceforge.net/ (or whatever version it is up to by the time you get to it)
Extract it and keep the extracted folder and the zip file somewhere you know.
Launch XBMC and go into addons and "install from zip file" on this.
Start the addon through the programs menu and pick to add the registry keys (first option)

You will then be required to restart your PC.

Once all going again, head to the folder you extracted and within resources/data there is another keyboard.xml.
Copy this one to C:\Users\yourusername\AppData\Roaming\XBMC\userdata\keymaps\ (or the location it is stored if you have done a portable install)

Open the keyboard.xml you have copied to your userdata folder, the keyboard.xml you put in the XBMC install directory, plus the showkey.exe program found in the resources/data folder of the extracted zip file.

http://wiki.xbmc.org/?title=Keymap.xml
This page will also come in very handy. At the bottom is a list of most (if not all) of the available actions that can be used in your keyboard.xml


The idea of what we are going to do now is see what each particular key of your remote sends by looking in showkey.exe. You can also test some of this within XBMC to see if a particular key is already doing what you want it to do.

If a key is not doing what you want, or just popping up a notification, decide what you want these to do, even if they are different things in different windows.

We DO NOT edit the keyboard.xml that is in the install directory, as when you do an upgrade you will lose all your hard work.

So editing the userdata keyboard.xml, find the code from showkey.exe and paste it into the file. Now you also need to know if this will be a global setting for the key or just a particular window. This is where original file comes in.

The sections such as <global> <home> <virtualkeyboard> and so on need to be put into your custom file if you want to change keys only in those sections.

As an example, i wanted my DVD Menu button to open up the codec info (usual keyboard press "o") of a playing video file.
So i added <m mod="ctrl,shift">CodecInfo</m> to the global section of my keyboard.xml

The <m mod="ctrl,shift"> i got from showkey.exe, the "CodecInfo" from the webpage above, and because i don't want that button doing anything else in any other window, i put it into <global>, although this could have gone into <FullscreenVideo> as well so i could use it for something else globally. I could also overwrite its function in say <Visualisation> by adding it there as well.

A trick for new players is making sure the back and other buttons do want you want them to do.

The green button on my remote i wanted to open the context menu ("c") on any items, but open and close the OSD in videos and music visualisations. So i added

<w mod="ctrl,shift">ContextMenu</w> to the <global> section,
<w mod="ctrl,shift">OSD</w> to <FullscreenVideo> and
<w mod="ctrl,shift">ActivateWindow(MusicOSD)</w> to <Visualisation>

however this didn't let me press the green button again to close the OSD in those windows. So you also have to add

<w mod="ctrl,shift">close</w> to <MusicOSD> and
<w mod="ctrl,shift">close</w> to <VideoOSD>

A copy of my keyboard.xml that I think i am happy with can be found here.
http://rapidshare.com/files/422223292/keyboard.xml

There a still some buttons I can't decide on a use for, but will add them as i think of things.

If anyone needs any help please post here and along with jhsrennie and everyone else will do my best.

Cheers
kulprit


- jhsrennie - 2010-09-30 10:12

zpike1 Wrote:trying to find a way to open the "context menu". most other functions seems to work Smile

Amazingly the Action you need is "ContextMenu" :-)

JR


- kulprit - 2010-09-30 11:01

Hey jhsrennie, any chance you have considered changing what the power outputs so I can set it to the shutdown menu rather than it still being used by windows. Is there any downside to this?


- jhsrennie - 2010-09-30 11:21

kulprit Wrote:Hey jhsrennie, any chance you have considered changing what the power outputs so I can set it to the shutdown menu rather than it still being used by windows. Is there any downside to this?

Originally I had the power button mapped to alt-F4 so pressing it once closed XBMC, then pressing it again closed Windows. However this proved unpopular because people wanted the power button to put their PCs into standy.

To make the power button send alt-F4 open %appdata%\xbmc and drill down into addons\plugin.script.mceremote\resources\data and open MSRemote.reg in Notepad. Find the line:

0c,00,00,00,03,82,00,\ ; Power - left at Windows default

and change it to:

0c,00,00,00,04,04,3d,\ ; Power - was "03,82,00" sends alt-F4

or to send "S" to open the shutdown menu:

0c,00,00,00,04,00,16,\ ; Power - was "03,82,00" sends "S"

Now run your modified MSRemote.reg and reboot.

JR


- Botafuco - 2010-09-30 13:06

Kulprit: awesome guide you wrote there. Thanks.


- kulprit - 2010-09-30 13:20

cheers, for both the compliment Botafuco and the help jhsrennie. With your new version is the only difference the ability to click open and it opens your userdata keyboard.xml with notepad. Not to say its not helpful, just want to know if i need to update.


- jhsrennie - 2010-09-30 17:07

kulprit Wrote:cheers, for both the compliment Botafuco and the help jhsrennie. With your new version is the only difference the ability to click open and it opens your userdata keyboard.xml with notepad. Not to say its not helpful, just want to know if i need to update.

No, not unless you want a quick way to edit keyboard.xml :-)

To be honest the plugin is something you're only ever going to use once to configure the remote. You could uninstall it once the remote is working.

JR


- zpike1 - 2010-09-30 21:37

I try to get the remote to work but it doesn't work that good Sad

I got kulprit keyboard.xml file but i only get the red button to work (shutdownmenu)

When i klick the other green, yellow and blue nothing happens.

The other thing i try to get is how to get the power button back as it was from start. I can't use the powerbutton to start my HTPC any more and thats kinda anoying.

Thanks for all help Smile


- kulprit - 2010-10-01 01:10

zpike1, if you press the green, yellow etc buttons with showkey.exe up does it get an output?

jhsrennie, any idea how to get the remote to perform jumpsms settings like in a list, plus sms typing if i wanted to in a on screen keyboard to work?


- zpike1 - 2010-10-01 09:39

kulprit Wrote:zpike1, if you press the green, yellow etc buttons with showkey.exe up does it get an output?

jhsrennie, any idea how to get the remote to perform jumpsms settings like in a list, plus sms typing if i wanted to in a on screen keyboard to work?

kulprit,here is the info:

Red Button <one mod="ctrl,alt">Notification(Key, one, 3)</one>
Green Button <two mod="ctrl,alt">Notification(Key, two, 3)</two>
Yellow Button <three mod="ctrl,alt">Notification(Key, three, 3)</three>
Blue Button <four mod="ctrl,alt">Notification(Key, four, 3)</four>

T Buttom (Bottom af the remote) <t mod="ctrl,alt">Notification(Key, t, 3)</t>
Mystic button, left uper corner <t mod="ctrl,alt">Notification(Key, t, 3)</t>

Have no idea what the Mystic and T button is good for.

Noticed that the yellow button seems to refrech my filelist or somethling like that.

Edit : pic of the remote
[Image: AsrockRemote.jpg]