Kodi Community Forum
[WINDOWS] HOW-TO use MCE remote in XBMC under Windows the easy way - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: [WINDOWS] HOW-TO use MCE remote in XBMC under Windows the easy way (/showthread.php?tid=78179)



- BitStreak - 2010-09-10

Thanks for this great reg file! I like that you made it similar to the original XBOX remote functionality!
I use a clone of the original Microsoft MCE remote and I do not have the Teletext button.
So... I would instead like to have the full screen function mapped to the 8 button for example.

I would be greatful if someone could let me know what to change in the reg file to do this?

Also, the Start button do seem to send Ctrl+Shift+X but it still won´t execute my desktop shortcut which has this command assigned to it.
I actually pressed the Start button to fill the Short cut key field so I know that it sends that command. But nothing happens when I press the button at the Desktop. Any ideas?

Great thread :-)


- StevenSeagull - 2010-09-10

Try the tool that comes with the remote-zip and test if it realyl sends ctrl+shift+x. I'll start troubleshooting that way.


- avus m3 - 2010-09-10

BitStreak Wrote:So... I would instead like to have the full screen function mapped to the 8 button for example.

I would be greatful if someone could let me know what to change in the reg file to do this?

Did you read the thread??


avus m3 Wrote:Here's what I have. Its the reg file but changes the info button to the default info key in xbmc. I used keyboard.xml to change * and # are TAB to switch full screen and context menu.

--------Here's the unmodified reg info:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HidIr\Remotes\745a17a0-74d3-11d0-b6fe-00a0c90f57da]
"ReportMappingTable"=hex:\
00,00,00,00,04,00,27,\ ; 0
01,00,00,00,04,00,1e,\ ; 1
02,00,00,00,04,00,1f,\ ; 2
03,00,00,00,04,00,20,\ ; 3
04,00,00,00,04,00,21,\ ; 4
05,00,00,00,04,00,22,\ ; 5
06,00,00,00,04,00,23,\ ; 6
07,00,00,00,04,00,24,\ ; 7
08,00,00,00,04,00,25,\ ; 8
09,00,00,00,04,00,26,\ ; 9
0a,00,00,00,04,00,29,\ ; Clear - sends escape
0b,00,00,00,04,00,28,\ ; Enter - sends return
0c,00,00,00,04,04,3d,\ ; Power - was "03,82,00" sends alt-F4
0d,00,00,00,04,03,1a,\ ; Windows - sends ctrl-shift-W
0e,00,00,00,04,00,41,\ ; Mute - was "01,e2,00" sends F8
0f,00,00,00,04,01,07,\ ; Info - was "01,09,02" sends ctrl-D
10,00,00,00,04,00,43,\ ; vol up - was "01,e9,00" sends F10
11,00,00,00,04,00,42,\ ; vol down - was "01,ea,00" sends F9
12,00,00,00,04,00,2e,\ ; chan up - was "01,9c,00" sends equals
13,00,00,00,04,00,2d,\ ; chan down - was "01,9d,00" sends hyphen/minus
14,00,00,00,04,03,09,\ ; ff - was "01,b3,00" sends ctrl-shift-F
15,00,00,00,04,03,05,\ ; rew - was "01,b4,00" sends ctrl-shift-B
16,00,00,00,04,03,13,\ ; play - was "01,b0,00" sends ctrl-shift-P
17,00,00,00,04,01,15,\ ; record - was "01,b2,00" sends ctrl-R
18,00,00,00,04,01,13,\ ; pause - was "01,b1,00" sends ctrl-P
19,00,00,00,04,03,16,\ ; stop - was "01,b7,00" sends ctrl-shift-S
1a,00,00,00,04,01,09,\ ; next - was "01,b5,00" sends ctrl-F
1b,00,00,00,04,01,05,\ ; prev - was "01,b6,00" sends ctrl-B
1c,00,00,00,04,03,20,\ ; # - sends ctrl-shift-3
1d,00,00,00,04,03,25,\ ; * - sends strl-shift-8
1e,00,00,00,04,00,52,\ ; up
1f,00,00,00,04,00,51,\ ; down
20,00,00,00,04,00,50,\ ; left
21,00,00,00,04,00,4f,\ ; right
22,00,00,00,04,00,28,\ ; OK (return)
23,00,00,00,04,00,2a,\ ; back - was "01,24,02" sends Backspace
24,00,00,00,04,03,10,\ ; DVD menu - sends ctrl-shift-M
25,00,00,00,04,03,17,\ ; Live TV - sends ctrl-shift-T
26,00,00,00,04,01,0a,\ ; Guide - was "01,8d,00" sends ctrl-G
27,00,00,00,04,05,17,\ ; Unidentified top left button on Asrock remote - configured as ctrl-alt-T
47,00,00,00,04,01,10,\ ; Music - sends ctrl-M
48,00,00,00,04,01,12,\ ; Recorded TV - sends ctrl-O
49,00,00,00,04,01,0C,\ ; Pictures - sends ctrl-I
4A,00,00,00,04,01,08,\ ; Movies - sends ctrl-E
4E,00,00,00,04,05,13,\ ; HP remote: Print button - sends ctrl-alt-P
50,00,00,00,04,01,04,\ ; Radio - sends ctrl-A
5A,00,00,00,04,01,17,\ ; Teletext - sends ctrl-T
5B,00,00,00,04,05,1e,\ ; Red - sends ctrl-alt-1
5C,00,00,00,04,05,1f,\ ; Green - sends ctrl-alt-2
5D,00,00,00,04,05,20,\ ; Yellow - sends ctrl-alt-3
5E,00,00,00,04,05,21 ; Blue - sends ctrl-alt-4






------------Here's the modifed one I did:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HidIr\Remotes\745a17a0-74d3-11d0-b6fe-00a0c90f57da]
"ReportMappingTable"=hex:\
00,00,00,00,04,00,27,\ ; 0
01,00,00,00,04,00,1e,\ ; 1
02,00,00,00,04,00,1f,\ ; 2
03,00,00,00,04,00,20,\ ; 3
04,00,00,00,04,00,21,\ ; 4
05,00,00,00,04,00,22,\ ; 5
06,00,00,00,04,00,23,\ ; 6
07,00,00,00,04,00,24,\ ; 7
08,00,00,00,04,00,25,\ ; 8
09,00,00,00,04,00,26,\ ; 9
0a,00,00,00,04,00,29,\ ; Clear - sends escape
0b,00,00,00,04,00,28,\ ; Enter - sends return
0e,00,00,00,04,00,41,\ ; Mute - was "01,e2,00" sends F8
0f,00,00,00,04,00,0C,\ ; Info - was "01,09,02" sends I
10,00,00,00,04,00,43,\ ; vol up - was "01,e9,00" sends F10
11,00,00,00,04,00,42,\ ; vol down - was "01,ea,00" sends F9
12,00,00,00,04,00,2e,\ ; chan up - was "01,9c,00" sends equals
13,00,00,00,04,00,2d,\ ; chan down - was "01,9d,00" sends hyphen/minus
14,00,00,00,04,03,09,\ ; ff - was "01,b3,00" sends ctrl-shift-F
15,00,00,00,04,03,05,\ ; rew - was "01,b4,00" sends ctrl-shift-B
16,00,00,00,04,03,13,\ ; play - was "01,b0,00" sends ctrl-shift-P
17,00,00,00,04,01,15,\ ; record - was "01,b2,00" sends ctrl-R
18,00,00,00,04,01,13,\ ; pause - was "01,b1,00" sends ctrl-P
19,00,00,00,04,03,16,\ ; stop - was "01,b7,00" sends ctrl-shift-S
1a,00,00,00,04,01,09,\ ; next - was "01,b5,00" sends ctrl-F
1b,00,00,00,04,01,05,\ ; prev - was "01,b6,00" sends ctrl-B
1c,00,00,00,04,03,20,\ ; # - sends ctrl-shift-3
1d,00,00,00,04,03,25,\ ; * - sends ctrl-shift-8
1e,00,00,00,04,00,52,\ ; up
1f,00,00,00,04,00,51,\ ; down
20,00,00,00,04,00,50,\ ; left
21,00,00,00,04,00,4f,\ ; right
22,00,00,00,04,00,28,\ ; OK (return)
23,00,00,00,04,00,2a,\ ; back - was "01,24,02" sends Backspace
24,00,00,00,04,00,10,\ ; DVD menu - sends M
26,00,00,00,04,01,0a,\ ; Guide - was "01,8d,00" sends ctrl-G





-------Here's my keyboard.xml file. Super simple because of changing the mce keys to default xbmc keys and leaving the play,pause. etc how they are because they work:


<keymap>
<global>
<keyboard>
<three mod="ctrl,shift">ContextMenu</three>

<eight mod="ctrl,shift">FullScreen</eight>

<zero>CodecInfo</zero>

<eight>Queue</eight>
</keyboard>
</global>
</keymap>



- BitStreak - 2010-09-10

StevenSeagull Wrote:Try the tool that comes with the remote-zip and test if it realyl sends ctrl+shift+x. I'll start troubleshooting that way.

Thanks for the hint. Hmm, it only sends "Ctrl+Shift"...


- BitStreak - 2010-09-10

avus m3 Wrote:Did you read the thread??

I actually did. :-)

But I am having some difficulties understanding how everything fits together.
Isn't it possible to make do without the xml file and configure everything in the reg file?
When is the xml file needed? And why did elitegamer360 not just provide a xml file instead of a reg file?

Sorry if these are obvious things... Undecided

Are the hex codes for all keys available anywhere for reference?


- PKOneTwo - 2010-09-10

I have an original MS MCE Remote and your reg works fine. But is there any way to use the remote with XBMC when XBMC is out of focus?

There is some sort of IR system in windows that can control things regardless of focus. That's what i've found out reading from another topic in this forum.

PS: I also liked to know why changing the windows reg instead of just myking an keyboard.xml? (well the media center button on the remote have to be done with th reg method, but what about the rest of it)?


- avus m3 - 2010-09-11

BitStreak Wrote:I actually did. :-)

But I am having some difficulties understanding how everything fits together.
Isn't it possible to make do without the xml file and configure everything in the reg file?
When is the xml file needed? And why did elitegamer360 not just provide a xml file instead of a reg file?

Sorry if these are obvious things... Undecided

Are the hex codes for all keys available anywhere for reference?

Sorry I am not trying to sound like an ass just thought it was clear. The xml is ONLY for setting key defaults in XBMC. The reg files changes what the system actually sees from the remote. The default MCE play pause etc all work hence why I left them alone in my version. They might not on all though so I think the op went the safe way. Other than that it's just small things that xbmc doesn't work with the default mce remote that the reg takes care off.

PKOneTwo Wrote:I have an original MS MCE Remote and your reg works fine. But is there any way to use the remote with XBMC when XBMC is out of focus?

There is some sort of IR system in windows that can control things regardless of focus. That's what i've found out reading from another topic in this forum.

PS: I also liked to know why changing the windows reg instead of just myking an keyboard.xml? (well the media center button on the remote have to be done with th reg method, but what about the rest of it)?

You need to use event ghost to forward the commands to xbmc. Search the forums there is a HUGE thread about it. I don't have a link handy.


- BitStreak - 2010-09-11

BitStreak Wrote:Thanks for the hint. Hmm, it only sends "Ctrl+Shift"...

It works now.
I have been using an original XBOX remote and IR receiver at the same time as the MCE one and despite them not being compatible - it somehow interferred.
All other buttons have been unaffected all along.

Strange. :-)


- BitStreak - 2010-09-11

avus m3 Wrote:Sorry I am not trying to sound like an ass just thought it was clear. The xml is ONLY for setting key defaults in XBMC. The reg files changes what the system actually sees from the remote. The default MCE play pause etc all work hence why I left them alone in my version. They might not on all though so I think the op went the safe way. Other than that it's just small things that xbmc doesn't work with the default mce remote that the reg takes care off.

No worries. :-)
Thanks for the clarification!
I will not be using MCE at all so I thought it would be cool to set everything up via the registry if possible.


- PKOneTwo - 2010-09-11

avus m3 Wrote:Sorry I am not trying to sound like an ass just thought it was clear. The xml is ONLY for setting key defaults in XBMC. The reg files changes what the system actually sees from the remote. The default MCE play pause etc all work hence why I left them alone in my version. They might not on all though so I think the op went the safe way. Other than that it's just small things that xbmc doesn't work with the default mce remote that the reg takes care off.



You need to use event ghost to forward the commands to xbmc. Search the forums there is a HUGE thread about it. I don't have a link handy.

As i mentioned: i don't wat to use another extra application !!!
That's not what i was asking for.
The meaning of this thread and it's creator is to be able to use the remote WITHOUT any 3rd party applications!


I would appreciate if someone would stick to the topic and any help is welcome.


- avus m3 - 2010-09-11

PKOneTwo Wrote:As i mentioned: i don't wat to use another extra application !!!
That's not what i was asking for.
The meaning of this thread and it's creator is to be able to use the remote WITHOUT any 3rd party applications!


I would appreciate if someone would stick to the topic and any help is welcome.

I think your confused and obviously help isn't welcome. You want something DIFFERENT from the purpose of this thread. THE purpose of this thread is to get a MCE remote working in XBMC without another app in the way. Well check that box off because it works. YOU want to have the remote commands go to XBMC when out of focus. Use event ghost. I am trying to help you...listen to the advice.

You can't get or even expect XBMC to be able to grab any input the computer gets be it from remote, keyboard, mouse, etc when out of focus with out some program directing it (Event Ghost). Either use event ghost and have another app in the way or drop your requirement about being out of focus and receiving commands. Start a new thread about it and keep this one, as you put it, on topic. Make a feature request of the devs and try and get them to figure it out. Other GL


- PKOneTwo - 2010-09-11

avus m3 Wrote:I think your confused and obviously help isn't welcome. You want something DIFFERENT from the purpose of this thread. THE purpose of this thread is to get a MCE remote working in XBMC without another app in the way. Well check that box off because it works. YOU want to have the remote commands go to XBMC when out of focus. Use event ghost. I am trying to help you...listen to the advice.

You can't get or even expect XBMC to be able to grab any input the computer gets be it from remote, keyboard, mouse, etc when out of focus with out some program directing it (Event Ghost). Either use event ghost and have another app in the way or drop your requirement about being out of focus and receiving commands. Start a new thread about it and keep this one, as you put it, on topic. Make a feature request of the devs and try and get them to figure it out. Other GL

I understood you. But you didn't completely get my point:

Quote: "There is some sort of IR system in windows that can control things regardless of focus. That's what i've found out reading from another topic in this forum."

I got that from: http://forum.xbmc.org/showpost.php?p=599774&postcount=102

So maybe, juts maybe, there is a way! Therefore if this is possible, why not with xbmc?
Can't xbmc take command from Windows API (XBMC code needed, right)?
And aren't there any keybord shortcuts (or any other commands) that already work (doesn't matter if xbmc is IN or OUT of focus)?

Since we bith arenÄt devs, how sure can you be? And does anyone know an answrr with 100% certainty?


- frieten - 2010-09-12

i can get hold of an original XBOX remote for cheap from a friend will that work with this?

http://www.costbuy.com/Products/XBOX-Microsoft-Original-Movie-Playback-Kit--DVD-Remote__805529321540.aspx


- StevenSeagull - 2010-09-12

I have tested many times and after a random amount of exit XBMC i cannot start it with the green button 1 more time. Is there a way to make XBMC restart itself instead of the whole pc reboot? That would pretty much solve my issues altogether!


- BitStreak - 2010-09-12

frieten Wrote:i can get hold of an original XBOX remote for cheap from a friend will that work with this?

http://www.costbuy.com/Products/XBOX-Microsoft-Original-Movie-Playback-Kit--DVD-Remote__805529321540.aspx

No, this thread is about the MCE remote for the PC.
There is a way to use the XBOX DVD kit with the PC but it involves some more work.

First you need to fix a USB adapter or solder it yourself.
Then you need a specific driver.

Let me know if this is the route you would like to take and i can provide some more info.

I did this myself recentlu but ended up buying a MCE remote instead due to some issues with double presses.

This one is an exact copy of the MS MCE remote and works really well.

http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=330422810165&ssPageName=ADME:L:OU:GB:1123