Posts: 7,256
Joined: Nov 2008
Reputation:
121
@vexation: I've tried the .reg files on Windows 7 Pro x64, and they both work as expected. However there appears to be a bug in the showkey.exe app that until you resize it for the first time it doesn't show any keystrokes. Try running showkey then resizing the window by a small amount. Press any key on the keyboard to confirm that showkey is catching the keystrokes.
JR
Posts: 15
Joined: Sep 2009
Reputation:
0
waroc
Junior Member
Posts: 15
2009-12-04, 15:46
(This post was last modified: 2009-12-04, 16:30 by waroc.)
Hi, JR.
Thanks to your great support to make XBMC the media center I prefer.
I use WIN 7 X64
Remote pinnacle pctv remote kit
XBMC 9.11 beta 1
I've downloaded your mceremote.zip.
What I want is to use the remote only for XBMC, so I will install the remote-xbmc.reg.
I use XBMC with dual screen display, running it on the second display, and using 1st display for the internet and so-on...
Without installing your files, the remote works, at least to browse files, launch movies, go forward, backward...
As I run a film on the second display, thanks to XBMC, and when I use applications on the other display, XBMC still runs the movie, BUT the remote became inefficient. In fact the XBMC window is disactivated.
The only way to get back control on XBMC with the remote is to clik on XBMC button in the task bar on the 1st display, which is in another room. That's boring me.
So here is my question : With your reg file, is there a button to get back control, green logo button for example ? Could this button have exactly the same function as it has with Win Media Center ?
I hope I've been clear. Thank you for your support;
Posts: 7,256
Joined: Nov 2008
Reputation:
121
@waroc: The remote control sends a keystroke when you press a button, and it sends the keystroke to whatever application has the focus. If XBMC is running in the background then the remote won't control it.
You can modify the button settings yourself. For example you could configure one of the buttons to send alt-tab, and you might be able to use this to bring XBMC to the front. Aside from tricks like this i think you're going to have to use an external program like EventGhost.
JR
Posts: 15
Joined: Sep 2009
Reputation:
0
waroc
Junior Member
Posts: 15
2009-12-04, 19:28
(This post was last modified: 2009-12-04, 20:10 by waroc.)
Hi JR,
So what do you think about the "mix-using" :
- Install your "remote-xbmc.reg" to disable actions on Win Media Center, and to be full efficient on XBMC.
- And run Eventghost, setting a button to focus xbmc.
Questions :
- Do I have to disable hid device or not (eventghost option) ?
- You talk about Alt-tab, what about pointing to "xbmc.exe" as I guess that if it's already running it won't run once more but will be focused ?
- How do I affect this action to the "green button" with event ghost ?
- And last, what is your showkey.exe usefull for ?
Thanks
Posts: 6,563
Joined: Apr 2008
Reputation:
160
natethomas
Enjoying Retirement by Staying Busy
Posts: 6,563
waroc, there are other, better places to find answers about using eventghost. For example, the EventGhost guide in the Windows sub-forum. Also, the eventghost website and forum.
Posts: 15
Joined: Sep 2009
Reputation:
0
waroc
Junior Member
Posts: 15
2009-12-05, 17:45
(This post was last modified: 2009-12-06, 00:18 by waroc.)
Hi JR,
I've thought about what you wrotte :
You can modify the button settings yourself. For example you could configure one of the buttons to send alt-tab, and you might be able to use this to bring XBMC to the front.
Then I would like to experiment this :
1- Generate a hotkey for xbmc.exe. For example ctrl+alt+x.
Once this done, I add in your "remote-xbmc.reg" the line 0d,00,00,00,04,05,1b, to configure the "green button" to send ctrl+alt+x
2- Set back to 0c,00,00,00,03,82,00 to switch the computer into suspend mode instead of shuting down xbmc.
What do you think, will it work ?
Other question, just to try to understand how it works, because I like understand : I compared your files (remotesendkeys.reg and remotexbmc.reg). I didn't understand why the remotexbmc.reg is unefficient on Windows media center. I noticed that there are several common lines, so if media center is opened it will be affected by the remote, isn't it ?
Thanks
Posts: 4
Joined: Aug 2009
Reputation:
0
How do you make it stop launching media center with the big center button?
Posts: 7,256
Joined: Nov 2008
Reputation:
121
@waroc:
>What do you think, will it work ?
Try it! As long as you back up the key first there's no harm in experimenting.
>Other question, just to try to understand how it works, because I like
>understand : I compared your files (remotesendkeys.reg and
>remotexbmc.reg). I didn't understand why the remotexbmc.reg is unefficient
>on Windows media center. I noticed that there are several common lines, so
>if media center is opened it will be affected by the remote, isn't it ?
The lines that are identical in both are things like the numbers and cursor keys, and these should work with Media Center in both configs. The Play, Pasue etc buttons are different and after installing Remote-XBMC.reg they will not work with Media Center.
JR
Posts: 15
Joined: Sep 2009
Reputation:
0
waroc
Junior Member
Posts: 15
2009-12-06, 13:13
(This post was last modified: 2009-12-06, 14:45 by waroc.)
@ JR
Thanks
However, I get a little bit confused trying understand the way of mapping.
Following a previous link in this thread, I learned that for each button there're 7 bytes.
So that a code for a button is like that :
11,00,00,00,04,00,56 for example.
A B C D E F G
A defining the button
B,C,D always 00 for MCE remote
E depending the type of action. 04 for a key press event.
F 00 if you don't modify G, 05 for CTRL+ALT, 06 for SHIFT+ALT, 01 for CTRL, etc...
G HID usage ID that we can find in the "translate.pdf"
Now, looking in your "remote-xbmc.reg" for the button "volume up" for example, you write
10,00,00,00,04,00,57. I agree with that. 10 is "vol+ button", 04 for key pres event, 00 for "no modify", and 57 for "keypad +".
Just after you write "was 01, e9, 00". Didn't you want to write "was 01,00,e9" ?
Because I don't find the code "e9" for F position, and 00 in G position means "no event".
So if I want to restore the suspend function of the remote, souldn't I write 0c,00,00,00,03,00,82 instead of ...,03,82,00 ?
Thank you for taking time to explain me.