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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: [WINDOWS] HOW-TO use MCE remote in XBMC under Windows the easy way (/showthread.php?tid=78179)



- elitegamer360 - 2011-06-01 01:35

stolek5 Wrote:Hi,

I'm wondering if it's possible to map the download subtitle add-on dialog to below remote button:

[Image: z3Zd3.jpg]

this button is visible in ShowKey:

[Image: 5tWDz.png]

I've tried map a key to multiple command to download subtitles for movie, now I must press:
1. "m" button
2. "up row" button
3. "right row" button
4. "enter" button

[Image: lTtXQ.png]

Do I need modify keyboard.xml in location:
C:\Users\Moni\AppData\Roaming\XBMC\userdata\keymaps ?

or it's possible different method ?

this is for laptop HP Pavilion dv6000 with Windows 7 32-bit installed.

thanks for any help

This is very easy to do and not too complicated, I use it myself instead of using "on/off" subtitles trigger button.

Make sure XBMC is not running when you do this! Now what you need to do is open %AppData%\XBMC\userdata\keymaps which the same as C:\Users\Moni\AppData\Roaming\XBMC\userdata\keymaps hence the first can be plugged in the windows run command program and it will open the right folder for you.

then if you are using my custom keyboard.xml then open it to edit it and then search for
Code:
<t>ShowSubtitles</t>
the first result should be under
Code:
<Keymap>
  <FullscreenVideo>
    <keyboard>
Now copy the script below
Code:
<key id='61695'>XBMC.RunScript("C:\Users\Moni\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\default.py")</key>
and paste it right under <t>ShowSubtitles</t> save and exit.

Well if you do not have a keyboard.xml in your "userdata\keymaps" folder then create a new one or use your own custom one if it exist. you will need to copy and paste the script below in it.
Code:
<keymap>
           <FullscreenVideo>
               <keyboard>
                  <key id='61695'>XBMC.RunScript("C:\Users\Moni\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\default.py")</key>
               </keyboard>
           </FullscreenVideo>
        </keymap>

NOTE: if nothing in your keyboard.xml then leave the script as is but if there are something in it then copy the script without the <keymap> and </keymap> parts because you should already have one in the begining and one at the end respectively.

Now run XBMC and it should work, Note it will only work under "Fullscreen video" as noted above, if you want to run it not just in the "FullscreenVideo" then put the script in the "Global" section instead. Also note that you can use it now with any skin even with the ones that does not have the subtitle script shortcut in the Video OSD menu.

Hope this helps.

Cheers,
EG.


- stolek5 - 2011-06-01 08:13

thank you so much,

I will try today evening and let you know about my results Smile

thanks again !!


- floepie - 2011-06-01 12:10

I thought I would add something that you may or may not know about. I use a harmony remote to control all devices within a programmed "activity". When switching to a different "activity", all the unused devices from the previous "activity" are switched off. However, if the PC doesn't receive the 'power toggle' command from the remote properly, the PC can turn ON when it was intended to be turned OFF and vice versa. The PC is my only device without dedicated POWER ON and POWER OFF commands.

In order to fix this, I simply changed the MCE remotes 'red' button to the power toggle command in the registry. Now, you might think that I have two separate Power Toggle switches, but what I wind up with is one normal Power Toggle and one Power OFF (red button), because when the PC sits in standby, it responds ONLY to the Power Toggle button and not to the 'red' button.

So, in the Harmony software, I set the new Power On command to the normal Power Toggle button and the Power Off command to the 'red' button. Now, I have a dedicated Power ON and Power OFF buttons, just as all the other devices now have.


- elitegamer360 - 2011-06-01 12:51

stolek5 Wrote:thank you so much,

I will try today evening and let you know about my results Smile

thanks again !!

No worries, this should work fine for you :-)

Cheers,
EG.


- stolek5 - 2011-06-01 18:50

elitegamer360 Wrote:No worries, this should work fine for you :-)

Cheers,
EG.

unfortunately doesn't work Sad nothing happened after press that button, also I can't find any thing related in debug log Sad

this is my keyboard.xml

also I've tried with new keyboard.xml with only:

Code:
<keymap>
           <FullscreenVideo>
               <keyboard>
                  <key id='61695'>XBMC.RunScript("C:\Users\Moni\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\default.py")</key>
               </keyboard>
           </FullscreenVideo>
        </keymap>

but still the same Sad

do you know what could be wrong ?

pls help...


- elitegamer360 - 2011-06-01 19:27

I can't see what is going wrong without looking at your debug log. Please enable debug log then go to XBMC home screen press the button several times then open a video and also press the button again several times then quit XBMC.

Please post the the link to the debug log here, after you upload the debug log details on pastebin.com

Can you please confirm your subtitles script location, double check it against the script that I gave you. Can you also let me know what XBMC version are you running.

Edit: what does this button do in the past did it do anything at all in xbmc? How did you configure your remote? Does your remote use the "ehome" driver?

Cheers,
EG.


- stolek5 - 2011-06-01 22:29

elitegamer360 Wrote:I can't see what is going wrong without looking at your debug log. Please enable debug log then go to XBMC home screen press the button several times then open a video and also press the button again several times then quit XBMC.

Please post the the link to the debug log here, after you upload the debug log details on pastebin.com

Can you please confirm your subtitles script location, double check it against the script that I gave you. Can you also let me know what XBMC version are you running.

Edit: what does this button do in the past did it do anything at all in xbmc? How did you configure your remote? Does your remote use the "ehome" driver?

Cheers,
EG.

I've tried with next button "dvd" which previous work by default as "backspace" in fullscreen video:

[Image: 62ghV.jpg]

Code:
<backspace>XBMC.RunScript("C:\Users\Moni\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\default.py")</backspace>

and now working perfectly Smile

I use XBMC 10.1 Git:e9e9099 (Complide: Mar 8 2011)
And that button [Image: gCc4F.png] previously does nothing in all XBMC Smile
I'm not sure how I configure my remote, that was more than half year ago, but from what I remember I use this reg: Config.v1.24.reg or Config.v1.23.reg but really I'm not sure, sorry...

xbmc.log

I noticed a strange thing, because in ShowKey.exe both buttons [Image: gCc4F.png] and "DVD" have the same KeyID Confused

btw thanks for help again

P.S. sorry for my english


- elitegamer360 - 2011-06-01 22:36

stolek5 Wrote:I've tried with next button "dvd" which previous work by default as "backspace" in fullscreen video:

[Image: 62ghV.jpg]

Code:
<backspace>XBMC.RunScript("C:\Users\Moni\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\default.py")</backspace>

and now working perfectly Smile

I use XBMC 10.1 Git:e9e9099 (Complide: Mar 8 2011)
And that button [Image: gCc4F.png] previously does nothing in all XBMC Smile
I'm not sure how I configure my remote, that was more than half year ago, but from what I remember I use this reg: Config.v1.24.reg or Config.v1.23.reg but really I'm not sure, sorry...

I noticed a strange thing, because in ShowKey.exe both buttons [Image: gCc4F.png] and "DVD" have the same KeyID Confused

btw thanks for help again

P.S. sorry for my english

Ok great to hear its working now. I just wanted to see the debug log because I suspected that this button does actualy send back. Great that you figured it yourself.

Cheers,
EG.


- stolek5 - 2011-06-01 22:39

elitegamer360 Wrote:Ok great to hear its working now. I just wanted to see the debug log because I suspected that this button does actualy send back. Great that you figured it yourself.

Cheers,
EG.

debug log (with button [Image: gCc4F.png] in action) attached in previous post


- rugbymad - 2011-06-03 13:22

elitegamer360 Wrote:Thats better thank you :-)

Regarding the Power button I've set it to XBMC Power menu because you can configure exactly what you want in XBMC. But if you want it to send your PC to sleep then do as follows:- We are going to use the conventional way of editing the the reg file manually instead of using MCEremotemapper :-)

1- On your Keybopard hit "Win+R" keys to start the "Run" dialogue, then paste %AppData%\Xbmccustomregis\ and hit OK. It should open "Xbmccustomregis" installation folder.

2- Right click on "Config.v1.25.reg" and select "Edit"

[Power Button]
3- Look for
Code:
0c,00,00,00,04,00,16,\ ; [Power]         - Sends "S"

Hi Eg..

Soz but i need your help again pse.. first of all you were right!!! i changed my power button settings back to yours,, they are better..

i am setting up my sons profile as per http://forum.xbmc.org/showthread.php?tid=61779. as i'm fed up of his cartoons showing in my tvshows. in this post it says you can set up remote button B to switch between profiles, could you pleas post the code i would have to do in the reg to enable me just to switch back and forth with the press of 1 button

4- Change it to
Code:
0c,00,00,00,03,82,00,\ ; [Power]         - Sends "PC to Sleep"

[Blue Button]
5- look for
Code:
5E,00,00,00,04,00,1a,\ ; [Blue]           - Sends "W"

6- change it to
Code:
5E,00,00,00,04,08,07,\ ; [Blue]           - Sends "Win-D"

[Yellow Button]
7- look for
Code:
5D,00,00,00,04,01,1C,\ ; [Yellow]        - Sends "Ctrl-Y"

8- change it to
Code:
5D,00,00,00,04,05,05,\ ; [Yellow]        - Sends "Ctrl-Alt-B"

[Red Button]
9- look for
Code:
5B,00,00,00,04,00,2b,\ ; [Red]        - Sends "TAB"

1- change it to
Code:
5B,00,00,00,04,05,06,\ ; [Red]        - Sends "Ctrl-Alt-C"

Save and exit notepad. Double click on the config file to apply the new settings. It will require a restart but will restart later.

Now Move to the GSB Script before restarting! Use the script below instead of the one posted above. We only need the last two because the blue button is sorted already.
Code:
        ^!VK42::
        Run C:\Program Files\Internet Explorer\iexplore.exe
        ;Hit "Ctrl+Alt+B" "MCE Yellow Button" to "Internet Explorer"
        Return
        
        ^!VK43::
        Run C:\Program Files (x86)\Skype\Skype.exe
        ;Hit "Ctrl+Alt+C" "MCE Red Button" to start "Skype"
        Return

So copy this script and paste it below your current GSB script, just double check that the "Skype" installation location is correct, if so then SAVE, close notepad and Now finally restart your PC.

Now this edit should do what you want, you can now backup your Config.v1.25.reg because if you ever want to install Xbmccustomregis again and want your old settings again you can just apply Config.v1.25.reg over it to load your custom settings.

I hope this helps.

Cheers,
EG.


Hi eg,

sorry to bother you but i need your help pse... first of you were right i changed my power button back to your settingss they are much better..

i am setting up a profile for my son as i'm fed up of his stuff in my library as per this http://forum.xbmc.org/showthread.php?tid=61779.

it says you can setup a button to switch between profiles, could you pse post the code to set up the geen button to switch between profiles.

thx

it uses the b button as a keybord press if that helps