Initiate Visualisation Selection from the Visualisation window
#1
As a non developer I hope the dev's don't mind I'm posting here.

I'm mapping the color buttons of my rf remote to the extra MusicOSD buttons (lyrics, vis' select, vis' settings, vis preset list) for both MusicOSD and Visualisation windows.

For the "Visualisation Selection" button I'm using "SendClick(500)" (from the MusicOSD.xml), this works great on the MusicOSD window but not for the Visualisation window (of course I've tried SendClick(windowid,id) ).
As I'm not really into c++ and XBMC code so I wanted to know if this a limitation of GUIDialogMusicOSD.cpp that require the MusicOSD window to be active ?

My solution for the Visualisation window is to use a script from the keymap to popup the OSD and to click on the "Visualisation Selection" button.

Is there any other way to activate the "Visualisation Selection" dialog ? (without a script of course)

p.s. Here my current keymap:
Code:
<Visualisation>
    <keyboard>
      <red_btn>RunScript(script.cu.lrclyrics)</red_btn>
      <green_btn>RunScript(special://userdata/py_activate_click.py,500)</green_btn>
      <yellow_btn>Addon.Default.OpenSettings(xbmc.player.musicviz)</yellow_btn>
      <blue_btn>ActivateWindow(VisualisationPresetList)</blue_btn>
    </keyboard>
  </Visualisation>
  <MusicOSD>
    <keyboard>
      <red_btn>RunScript(script.cu.lrclyrics)</red_btn>
      <green_btn>SendClick(500)</green_btn>
      <yellow_btn>Addon.Default.OpenSettings(xbmc.player.musicviz)</yellow_btn>
      <blue_btn>ActivateWindow(VisualisationPresetList)</blue_btn>
    </keyboard>
  </MusicOSD>

And my script
Code:
import xbmc
import sys

controlid = sys.argv[1]

xbmc.executebuiltin('XBMC.Action(OSD)')
xbmc.executebuiltin('XBMC.SendClick('+controlid+')')
Reply

Logout Mark Read Team Forum Stats Members Help
Initiate Visualisation Selection from the Visualisation window0