Kodi Community Forum

Full Version: How to get rid of shut down menu?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using a MCE compatible remote and I have a close button, that will open the shut down menu (I'm guessing it's mapped to ESC)
I also have an off button that will send the computer to sleep.
I would like the close button to directly close Kodi and go to windows, without having to go through the menu. The shutdown button is doing fine.

Thanks, guys.
Some skins (eg quartz) let you choose.
First find out what command the remote close button sends. You can use a tool called showkey.exe for this. Then add this key combination in keyboard.xml to quit xbmc. For example, the shutdown menu is accessible by pressing 's'. The command is <s>ActivateWindow(shutdownmenu)</s>. Change it to <s>XBMC.Quit</s>
Thanks you guys. Excellent tip about the showkey and the code for the shutdown menu.

Problem with showkey.exe was that when I pressed the "close" button on the remote, it would actually close showkey.exe instead of showing me the key.

But changin the <s> line worked like a charm exactly how I want it :-) Thanks so much
I have another little issue

I played with the Hama MCE remote and my One For All remote a little bit

I used showkey to map out the following buttons that I now have available on the One For All remote as they get recognized by showkey

yellow <t mod="ctrl,shift">Notification(Key, t, 3)</t>
blue <m mod="ctrl">Notification(Key, m, 3)</m>
green <i mod="ctrl">Notification(Key, i, 3)</i>
red <e mod="ctrl">Notification(Key, e, 3)</e>
Info <o mod="ctrl">Notification(Key, o, 3)</o>
menu <g mod="ctrl">Notification(Key, g, 3)</g>
guide <t mod="ctrl">Notification(Key, t, 3)</t>
tv/dtv <m mod="ctrl,shift">Notification(Key, m, 3)</m>


I tried adding this line in the keyboard.xml
<o mod="ctrl">Info(Key, o, 3)</o>
to make Kodi it display media info, when a media item is selected and the info button is pushed. It's not working, so I guess, I did something wrong, maybe the key combination is mapped to something else. If somebody could explain that one example to me, I'm sure I can figure out the rest myself.

Thanks guys
Try <o mod="ctrl">Info</o>

You can copy the original keyboard.xml file in xbmc installation folder to your xbmc appdata folder, and modify it.
Sorry for being a little bit stupid here,

Is it supposed to go in \AppData\Roaming\XBMC\system ?

I changed the d mod ="ctrl" that normally handles info to "o"
and put <!-- infront of the line that normally handles Ctrl+o, but it's not working. :-(
I also copied my payercorefactory.xml into that folder.
I'm guessing these folders will not be changed when reinstalling Kodi.
Ah, found the mistake.

%APPDATA%\XBMC\userdata\keymaps\! is the correct folder.
Just tried one keymap and it worked beautifully :-)
Hmmm, not all of the modifications are working

I added this in the global - keyboard section and removed any of the used key combos from the rest of the file.

<!-- Custom -->
<e mod="ctrl">ActivateWindow(Videos,MovieTitles)</e> <!-- Red Movies -->
<m mod="ctrl">ActivateWindow(music)</m> <!-- Blue music -->
<t mod="ctrl,shift">ActivateWindow(TVChannels)</t> <!-- Yellow TV -->
<i mod="ctrl">ActivateWindow(pictures)</i> <!-- Green pictures -->
<o mod="ctrl">Info</o> <!-- Info -->
<g mod="ctrl">ActivateWindow(WINDOW_HOME)</g> <!-- Menu Home -->
<t mod="ctrl">ActivateWindow(WINDOW_SETTINGS_MENU)</t> <!-- Settings -->

The home menu, TV shows, and settings are still not working. I would like to get direct access to these menus. I looked at the windows IDs. I couldn't find the proper one for the tv shows stored on the computer. It seems to be a subid to videos like the movies. I could only get the movies to work because I found them in an example. They didn't show up in the list of windows ids. But even though I found settings and home, these don't work either :-(

Yes, got it to work

<!-- Custom -->
<e mod="ctrl">ActivateWindow(Videos,movietitles)</e> <!-- Red Movies -->
<m mod="ctrl">ActivateWindow(music)</m> <!-- Blue music -->
<t mod="ctrl,shift">ActivateWindow(Videos,tvshowtitles)</t> <!-- Yellow TV -->
<i mod="ctrl">ActivateWindow(pictures)</i> <!-- Green pictures -->
<o mod="ctrl">Info</o> <!-- Info -->
<g mod="ctrl">ActivateWindow(home)</g> <!-- Menu Home -->
<t mod="ctrl">ActivateWindow(settings)</t> <!-- Settings -->


I found the correct designations here
http://wiki.xbmc.org/?title=Opening_Windows_and_Dialogs
I just got the favourites window (favourites) to open aswell.
Very cool :-)
Now I only have to get the one for all remote to always send the volume commands to the avr receiver and I'm happy :-)