Hello.
As there is a bug when switching output (cf Display bug when switching output from hdmi to dvi or dvi to hdmi) , I would like to script output change + applying work around.
The script is launched from a keyboard shortcut configured in /storage/.kodi/userdata/keymaps/remote.xml
Here is what I did so far :
1st pyton script that change output :
import xbmc, xbmcgui
xbmc.executebuiltin('Dialog.Close(all,true)')
xbmc.executebuiltin("ActivateWindow(systemsettings)")
xbmc.executebuiltin("Action(Right)")
xbmc.executebuiltin("Action(Select)")
xbmc.executebuiltin('Dialog.Close(all,true)')
It works, but I don't manage to close last dialogbox by confirming "Yes"
Then I apply my workaround (change skin by script) :
import xbmc, xbmcgui
xbmc.executebuiltin('Dialog.Close(all,true)')
xbmc.executebuiltin("ActivateWindow(interfacesettings)")
xbmc.executebuiltin("Action(Right)")
xbmc.executebuiltin("Action(Select)")
xbmc.executebuiltin("Action(Down)")
xbmc.executebuiltin("Action(Select)")
xbmc.executebuiltin("Dialog.Close(all,true)")
But same problem, I don't manage to confirm and close last dialogbox (Cf ConfirmSkinSwitch.jpg).
Does anyone know how I could emulate confirmation to those dialogbox using xbmc.executebuiltin within my script?
Thanks