2013-09-24, 21:52
I just want to close the currently visible window through my script
The Music Library window was on screen
I wrote following in script:
When I ran the script It did not close the window.
In xbmc.log it printed this:
This does not work either.
Why?
Thanks for help in advance.
The Music Library window was on screen
I wrote following in script:
PHP Code:
my_win = xbmcgui.Window(xbmcgui.getCurrentWindowId())
my_win.close()
In xbmc.log it printed this:
PHP Code:
00:59:21 T:140490155476864 DEBUG: Activating window ID: 0
00:59:21 T:140490155476864 ERROR: Unable to locate window with id -10000. Check skin files
PHP Code:
my_win = xbmcgui.getCurrentWindowId()
xbmc.executebuiltin("Dialog.Close("+ str(my_win) +", true) ")
Thanks for help in advance.