FrostBox Wrote:you can use busydialod in integrate in skin
PHP Code:
xbmc.executebuiltin( "ActivateWindow(busydialog)" )
sleep( 5 )
xbmc.executebuiltin( "Dialog.Close(busydialog)" )
cheers
frost
Sorry ... I have written a little script ... no dialog comes to the front ...
Could it be that the default skin Confluence doesn't have this dialog ?
Code:
[CODE]
#!/usr/bin/python
# -*- coding: utf-8 -*-
####################### IMPORTS #######################
import xbmc, xbmcgui
import os, sys, thread, stat, time, string, re
#######################################################
#######################################################
####################### MAIN ##########################
#######################################################
if __name__ == '__main__':
dvd = 0
xbmc.executebuiltin("ActivateWindow(busydialog)")
dvd = xbmc.getDVDState()
time.sleep(15)
xbmc.executebuiltin("Dialog.Close(busydialog)")
print "DVD-State value : " + str(dvd)
#######################################################
[/CODE]
After the execution I had this inside the log .......
:03:01 T:2915359600 M:1692446720 NOTICE: -->Python Interpreter Initialized<--
16:03:01 T:3023939456 M:1692291072 ERROR: Window Translator: Can't find window busydialog
16:03:01 T:3023939456 M:1692291072 ERROR: Activate/ReplaceWindow called with invalid destination window: busydialog
16:03:06 T:3023939456 M:1693245440 ERROR: XLCDproc::Initialize - Unable to connect to host. Retry in 16 seconds.
16:03:16 T:2915359600 M:1693212672 NOTICE: DVD-State value : 3
16:03:16 T:3023939456 M:1693212672 ERROR: Window Translator: Can't find window busydialog
16:03:22 T:3023939456 M:1693016064 ERROR: XLCDproc::Initialize - Unable to connect to host. Retry in 32 seconds.
So it seems that busydialog is not valid inside Confluence ....