2014-11-02, 18:31
I am about pulling my hair out on this one:
I am using a Universal Remote and have edited the registry to send certain keystrokes with certain button pushes. This all works and has been verified with showkey.exe
What I can't get XBMC to do is run a script when I push on of those buttons, even when I use a keyboard.
My Keymap:
<!-- Keymap for the keyboard shortcuts configured by MSRemote.reg -->
<!-- J. Rennie 23rd September 2010 -->
<keymap>
<global>
<keyboard>
<!-- Zoom button: ctrl-z -->
<!-- <z mod="ctrl">FullScreen</z> -->
<!-- Angle button: ctrl-z -->
<z mod="ctrl">AspectRatio</z>
<!-- Audio button: ctrl-t -->
<t mod="ctrl,shift">AudioNextLanguage</t>
<!-- Subtitle button: ctrl, alt-p -->
<p mod="ctrl,alt">NextSubtitle</p>
<!-- hue on: ctrl, alt-o -->
<o mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/63493e3fef19de8371e20b0813ff2a23"</o>
<!-- hue off: ctrl, alt-z -->
<z mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/10f3def9313785006d908bd7d0914baf"</z>
<!-- hue incr: ctrl, alt-i -->
<i mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/c28a5b6919db183bcdef9a673d917c10"</i>
<!-- hue decr: ctrl, alt-d -->
<d mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/0da7595e832f558d9ba7a70ce916481c"</d>
<!-- hue 66: ctrl, alt-h -->
<h mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/d7997b4f982092bfa5a32d8a74a001aa"</h>
<!-- hue 33: ctrl, alt-l -->
<l mod="ctrl,alt">Notification(This is the title, This is the message, 3)</l>
<!-- Videos button: ctrl-e -->
<e mod="ctrl">XBMC.ActivateWindow(VideoLibrary,MovieTitles)</e>
<!-- recorded tv button: ctrl-o -->
<o mod="ctrl">XBMC.ActivateWindow(VideoLibrary,TvShowTitles)</o>
<!-- radio button: ctrl-a -->
<a mod="ctrl">CodecInfo</a>
<!-- guide button: ctrl-q -->
<!-- <q mod="ctrl">ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</q> -->
<!-- guide button: ctrl-q -->
<q mod="ctrl">Notification(This is the title, This is the message, 3)</q>
<!-- record button: WM_Record -->
<r mod="ctrl">PlayerControl(Record)</r>
</keyboard>
</global>
</keymap>
Any of the control-alt o,z, etc aren't working but below that ctrl-q is working and shows me the notifcation, but ctrl-alt-L does not show me the notification, either when that button is pressed on remote (to send that key-combo) or the actual key combo on a keyboard is pressed.
In the action Ive linked a batch file to advanced launcher favorite, but ive tried a RunScript(python) and Exec.Shell(batch) in keyboard.xml with no luck. Even the notification in ctrl-alt-L doesn't work.
The only thing I can think of is outside of xbmc in windows I have keyboard-shortcuts to these batch files via a shortcut (.lnk) and they work. Are they perhaps holding the key-combo from xbmc somehow? I have the setting in input to allow Windows keypresses
I am using a Universal Remote and have edited the registry to send certain keystrokes with certain button pushes. This all works and has been verified with showkey.exe
What I can't get XBMC to do is run a script when I push on of those buttons, even when I use a keyboard.
My Keymap:
<!-- Keymap for the keyboard shortcuts configured by MSRemote.reg -->
<!-- J. Rennie 23rd September 2010 -->
<keymap>
<global>
<keyboard>
<!-- Zoom button: ctrl-z -->
<!-- <z mod="ctrl">FullScreen</z> -->
<!-- Angle button: ctrl-z -->
<z mod="ctrl">AspectRatio</z>
<!-- Audio button: ctrl-t -->
<t mod="ctrl,shift">AudioNextLanguage</t>
<!-- Subtitle button: ctrl, alt-p -->
<p mod="ctrl,alt">NextSubtitle</p>
<!-- hue on: ctrl, alt-o -->
<o mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/63493e3fef19de8371e20b0813ff2a23"</o>
<!-- hue off: ctrl, alt-z -->
<z mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/10f3def9313785006d908bd7d0914baf"</z>
<!-- hue incr: ctrl, alt-i -->
<i mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/c28a5b6919db183bcdef9a673d917c10"</i>
<!-- hue decr: ctrl, alt-d -->
<d mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/0da7595e832f558d9ba7a70ce916481c"</d>
<!-- hue 66: ctrl, alt-h -->
<h mod="ctrl,alt">PlayMedia("plugin://plugin.program.advanced.launcher/?default/d7997b4f982092bfa5a32d8a74a001aa"</h>
<!-- hue 33: ctrl, alt-l -->
<l mod="ctrl,alt">Notification(This is the title, This is the message, 3)</l>
<!-- Videos button: ctrl-e -->
<e mod="ctrl">XBMC.ActivateWindow(VideoLibrary,MovieTitles)</e>
<!-- recorded tv button: ctrl-o -->
<o mod="ctrl">XBMC.ActivateWindow(VideoLibrary,TvShowTitles)</o>
<!-- radio button: ctrl-a -->
<a mod="ctrl">CodecInfo</a>
<!-- guide button: ctrl-q -->
<!-- <q mod="ctrl">ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</q> -->
<!-- guide button: ctrl-q -->
<q mod="ctrl">Notification(This is the title, This is the message, 3)</q>
<!-- record button: WM_Record -->
<r mod="ctrl">PlayerControl(Record)</r>
</keyboard>
</global>
</keymap>
Any of the control-alt o,z, etc aren't working but below that ctrl-q is working and shows me the notifcation, but ctrl-alt-L does not show me the notification, either when that button is pressed on remote (to send that key-combo) or the actual key combo on a keyboard is pressed.
In the action Ive linked a batch file to advanced launcher favorite, but ive tried a RunScript(python) and Exec.Shell(batch) in keyboard.xml with no luck. Even the notification in ctrl-alt-L doesn't work.
The only thing I can think of is outside of xbmc in windows I have keyboard-shortcuts to these batch files via a shortcut (.lnk) and they work. Are they perhaps holding the key-combo from xbmc somehow? I have the setting in input to allow Windows keypresses