Kodi Community Forum

Full Version: Shortcut to show audio settings menu?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to show the audio settings while playing / pausing a video by pressing "t" (or STRG + T), but I cannot get it to work: http://wiki.xbmc.org/index.php?title=Vid...e_settings

Code:
<t mod="">OSDAudioSettings</t>

Here a part of my keymap file:

Code:
<FullscreenVideo>
    <keyboard>
    <b mod="ctrl">ActivateWindow(VideoBookmarks)</b>
      <b>RunScript(I:\Programme\XBMC\portable_data\userdata\setbookmark.py)</b>
                 <t mod="">OSDAudioSettings</t>
    </keyboard>
  </FullscreenVideo>
  <VideoOSD>
    <keyboard>
      <b>RunScript(I:\Programme\XBMC\portable_data\userdata\setbookmark.py)</b>
      <b mod="ctrl">ActivateWindow(VideoBookmarks)</b>
              <t mod="">OSDAudioSettings</t>
       </keyboard>
  </VideoOSD>

How could I correct it?
Have you tried to move your "t mod" up to FullscreenVideo?
Thank you, pettergulbra,

Sorry, I am not quite sure what you mean by this, there is a second "t mod" between those FullscreenVideo tags. May be you mean without using the keyboard tags? That would not work.
Sorry did not see that.

But, I don`t know this. But should it be like this:
<t mod="">OSDAudioSettings</t>

and not:
<t>OSDAudioSettings</t>

Why have the "mod="" there if it just an normal key?

I don`t have any mod for my normal keys. :-)
Yes, that is a good point. Because I had tried some of the keys I just had left the mod option empty. And according to my tries it does not matter whether the mod setting is empty or not. It does not work with something like <t mod="strg">OSDAudioSettings</t> either.

Yes, there are also some shortcuts not having such a mod in my file.

Thanks again.
No problem.
Hope you find out of it. :-)
this: uses CTRL+T
Code:
<keymap>
  <FullscreenVideo>
    <keyboard>
    <t mod="ctrl">ActivateWindow(OSDAudioSettings)</t>
    </keyboard>
  </FullscreenVideo>
</keymap>

you can use just "t" as well, but this overrides the default action "enable subtitles"
Great, that works, wsnipex, many thanks,

I am wondering how one could know to add "ActivateWindow" with that brackets to that line?

Hmmm, when I press "t" (without strg) nothing happens, no subtitles. The option "Enable subtitles" ("Untertitel aktivieren") in the audo settings menu stays enabled or disabled like before: http://i.imgur.com/b09ZDlV.png

Many thanks again.
You can only map buttons against a defined action. In our case the action is: ActivateWindow() with the argument of a defined window name: OSDAudioSettings.
You can find valid actions in the list of builtins: http://wiki.xbmc.org/index.php?title=Lis..._functions
your file doesn't have any subs, thats why nothing happens.
Alright, I am not quite sure if I understand that, but I will try it next time.

Many thanks for the link.

Ah, yes, the movie without subs, I would have thought there will would occur a message that subtitles are activated / deactivated.

Thank you very much, very glad it works now.