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 - 2010-12-23 02:56

silvine Wrote:Is it possible to change the info button to i? Or live TV to zoom?

No prob if not. Remote is working great now.

Tell me what the info button sends, also tell me what the Live TV & Zoom button sends then I'll let you know. Use showkey to find out what they send.

EDIT: Does the info send mouse click? IF yes let me know which one left or right.

Cheers,
EG.


- silvine - 2010-12-23 03:07

The info button right mouse clicks so I am guessing it can't be changed.

Here are the others I pressed that I've no use for.

<t mod="ctrl">Notification(Key, t, 3)</t> ; live tv' or 84 (0x54)-vk_t
<m mod="ctrl,shift">Notification(Key, m, 3)</m>; dvd
<b mod="ctrl,shift">Notification(Key, b, 3)</b>; recorded tv 79(0x4f)-vk_0
<t mod="ctrl,shift">Notification(Key, t, 3)</t>; yellow button
<browser_home>Notification(Key, browser_home, 3)</browser_home>; e button at the top left of my remote

It'd be great if I could bind one button to zoom and another to favourites.

Also when I pause a video and exit to the main navigation pane of XBMC I can see the video on the bottom right corner of the XBMC navigation pane. Is there anyway to bind a button to jump straight back to the video (preferably the 'e' button'? Normally, I just click on my videos and navigate to the video and 'resume' playback.

EDIT: I am not sure what the zoom button on my remote is.

EDIT: I included the keyboard codes for Live and Recorded TV as I am not sure if I am mixing them up


- elitegamer360 - 2010-12-23 03:29

silvine Wrote:The info button right mouse clicks so I am guessing it can't be changed.

Here are the others I pressed that I've no use for.

<t mod="ctrl">Notification(Key, t, 3)</t> ; live tv
<m mod="ctrl,shift">Notification(Key, m, 3)</m>; dvd
<b mod="ctrl,shift">Notification(Key, b, 3)</b>; recorded tv
<t mod="ctrl,shift">Notification(Key, t, 3)</t>; yellow button
<browser_home>Notification(Key, browser_home, 3)</browser_home>; e button at the top left of my remote

It'd be great if I could bind one button to zoom and another to favourites.

Also when I pause a video and exit to the main navigation pane of XBMC I can see the video on the bottom right corner of the XBMC navigation pane. Is there anyway to bind a button to jump straight back to the video (preferably the 'e' button'? Normally, I just click on my videos and navigate to the video and 'resume' playback.

Ahhh, this is very easy now you can do it yourself! cant you? Laugh

for those buttons:
Code:
<t mod="ctrl">Notification(Key, t, 3)</t> ; live tv
<m mod="ctrl,shift">Notification(Key, m, 3)</m>; dvd
<b mod="ctrl,shift">Notification(Key, b, 3)</b>; recorded tv
<t mod="ctrl,shift">Notification(Key, t, 3)</t>; yellow button
you can read my step by step remapping tutorial, I just wrote it yesterday!

and for this one:<browser_home>Notification(Key, browser_home, 3)</browser_home>; e button at the top left of your remote

just copy this code and paste it in the .ahk file below the other volume scripts I gave you earlier; I also recomend you use my Keyboard.xml v1.76
Code:
Browser_Home::tab
This script should restore your video back to full screen.
Save and exit, right click on the autohotkey icon "the one for blind" in the windows taskbar and select Reload this Script.


Any issues let me know, I'm going to bed now. NightBig Grin

Cheers,
EG.


- silvine - 2010-12-23 04:29

Got it all working. Thanks for the help.


- elitegamer360 - 2010-12-23 19:09

silvine Wrote:Got it all working. Thanks for the help.

Hey silvine, you are welcome Big Grin

Listen yesterday I did not say anything about the info/i button because I knew It will send a Rightmouse click, so there was no point giving you the script for it to add to the blind ones that I gave you yesterday. Becuase if you added it to them it will take effect in all and any windows screen hence will disable your mouse button, also the disadvantage of it that you might need to disable or enable the script each time you start XBMC which is a NO NO, at least from my point of view.

Well I just come back home and I have written a script that solves the problem above, its kinda simple but a bit more complicated than the one from yesterday. Basicly it will solve the right mouse button problem! And your WM_command buttons including the mouse button will work very well in XBMC and will work like normal out side XBMC :-) i.e out side XBMC "HID compliant consumer device" will take charge.

This is kinda good because as I can see it completley solves the "HID compliant consumer device" incompatiblity problems. I have another ideas in the bag but will reveal in due time. I do not want to spill the beans one time and then find bigger issues at hand :-)

If you are still interested in testing for me I'll post the code here. Wink

Cheers,
EG.


- silvine - 2010-12-24 11:12

Hi,

Yeah post it and I will give it a go. That'd be great.


- elitegamer360 - 2010-12-24 14:28

silvine Wrote:Hi,

Yeah post it and I will give it a go. That'd be great.

Thanks :-)

This time just right click on the Autohotkey "old Blind script" icon on your windows start menu taskbar and select "Edit script" Replace the old Script with this one:
Code:
;Script written to only activate specific keys when XBMC is in focus, Hence mouse functionality issue solved.

SetTitleMatchMode 2    ; Start for XBMC matching in window title/ fast default.
#IfWinActive XBMC ahk_class XBMC ; Script will look for XBMC window before activating the mapping.
                 ; if XBMC is Closed or sent to the background code designed to
                 ; bypass blinding the buttons, to resume proper mouse functionality
                 ; when needed.
        ;blind START.
    Volume_Up:: Send {F10}
    Volume_Down::Send {F9}
    Volume_Mute::Send {F8}
    Browser_Home::Send {tab}
    RButton:: Send {i}
        ;blind END.

Return
#IfWinActive ; Reset outside window.
    ;Coded by Elitegamer360
If you are using my Green start button script take care not to edit it by mistake.

Save then Exit the editing window. Right click again on that hotkey icon and select Reload This Script.

You should be good to go. I remapped my remote last night to emulate your one just to double check :-) let me know if all is good.

The good thing about autohotkey unlike Eventghost it takes ZERO CPU usage and only uses couple of kb's of memorry depending on script size no interference, light and superfast, I'm not arguing which one is better because this is not the subject here. Anyways If this goes well then I've got other plans to benefit XBMC MCE remote lovers Wink

Cheers,
EG.


- igjunk - 2010-12-24 22:42

elitegamer360 Wrote:Thanks :-)

Code:
;Script written to only activate specific keys when XBMC is in focus, Hence mouse functionality issue solved.

SetTitleMatchMode 2    ; Start for XBMC matching in window title/ fast default.
#IfWinActive XBMC ahk_class XBMC ; Script will look for XBMC window before activating the mapping.
                 ; if XBMC is Closed or sent to the background code designed to
                 ; bypass blinding the buttons, to resume proper mouse functionality
                 ; when needed.
        ;blind START.
    Volume_Up:: Send {F10}
    Volume_Down::Send {F9}
    Volume_Mute::Send {F8}
    Browser_Home::Send {tab}
    RButton:: Send {i}
        ;blind END.

Return
#IfWinActive ; Reset outside window.
    ;Coded by Elitegamer360
EG.

I am glad you decided to use the autohotkey to its fullest potential. I think, if you look into it futher, you'll find that there will be no reason to edit any other settings, except for the ahk file to map any key to any function in XBMC, including complex ones such as multiple key presses, sequential presses, etc.

Anyway, above script can just be added to the original "green button" ahk file.

Again, thanks a lot for your hard work and devotion to this project.

Thanks,

P.S. Happy Holidays!


- elitegamer360 - 2010-12-25 01:53

igjunk Wrote:I am glad you decided to use the autohotkey to its fullest potential. I think, if you look into it futher, you'll find that there will be no reason to edit any other settings, except for the ahk file to map any key to any function in XBMC, including complex ones such as multiple key presses, sequential presses, etc.

Anyway, above script can just be added to the original "green button" ahk file.

Again, thanks a lot for your hard work and devotion to this project.

Thanks,

P.S. Happy Holidays!

Ohh no, I'm just scratching the surface here. Wink

Thanks for the support though.

Happy holidays :-)

Cheers,
EG.


- djcorvus - 2010-12-25 09:54

Hey guys,

First of all, excellent tutorial. I've got it all working, except for a few issues:

1. I can't seem to get letter keypresses working on my remote (for example, when typing in a search on the youtube add-on). I've already got "Remote sends keypresses" turned on in settings.

2. I used to use EventGhost, and that allowed me to send my system to hibernation by pressing the power button on my remote. Since I've followed this tutorial, this is no longer the case. Instead, it brings up a menu with a whole bunch of options, neither of them being Hibernate. I've gone through the 'shutdown function' setting in 'system settings', but nothing seems to work. Is there a way that I can program the power button on my remote to once again put the system into hibernation (I think Windows 7 calls it S3 hybrid sleep mode)?

3. Lastly, I've followed the advanced settings guide to enable the "SmallStepBackwards" function when playing videos, however this doesn't work at all. When I'm playing videos, the back button still throws me back to the video selection screen.

I'm using Windows 7, running the latest XBMC Dharma 10.0.

If anyone could help me with this, it'll be greatly appreciated.

Thanks, and a merry Xmas to everyone! Smile