Win How to get rid of shut down menu?
#1
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.
Reply
#2
Some skins (eg quartz) let you choose.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
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>
Reply
#4
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
Reply
#5
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
Reply
#6
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.
Reply
#7
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.
Reply
#8
Ah, found the mistake.

%APPDATA%\XBMC\userdata\keymaps\! is the correct folder.
Just tried one keymap and it worked beautifully :-)
Reply
#9
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
Reply
#10
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 :-)
Reply

Logout Mark Read Team Forum Stats Members Help
How to get rid of shut down menu?1