Posts: 1,607
Joined: Apr 2016
Hi, I am trying to detect the subtitles download window. Now, I know you can get window ID with "xbmcgui.getCurrentWindowId()", but this doesn't seem to work with the subtitles window or overlay, whatever it is...
Is there a way to detect when "download subtitles" dialog/window has been opened?
Thanx!
D>
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
2016-07-22, 10:23
(This post was last modified: 2016-07-22, 10:24 by ronie.)
since it's a dialog, you might want to try "xbmcgui.getCurrentWindowDialogId()" instead.
another option is to use "xbmc.getCondVisibility('Window.IsActive(subtitlesearch)')"
Posts: 1,607
Joined: Apr 2016
Posts: 4
Joined: Feb 2017
Reputation:
0
Hi. I am trying to find a window ID in Eminence 2.0 skin to create a shortcut on my homepage so that i can restore my skin by just pressing the button on my homepage, rather than have to go all through the settings....how do i find the window ID please?....
Posts: 63
Joined: May 2005
Reputation:
0
Hi there,
Since the first question here has passed I wonder if it's still applicable.
Furthermore where do I place this "xbmcgui.getCurrentWindowDialogId()"?
I ask this because when playing DVD's my kids short push the red button on the "Harmony Hub companion" remote and I mapped with the aid of keymap editor addon to "osdsubtitlesettings.
I had to edit the .py in the "keymap editor" addon directory and added a line ("osdsubtitlesettings","Subtitle Settings") I placed this line directly after the subtitlesearch line.
What I would like todo is instead of opening this window, opening the window that offers me directly the choice of languages", I know It's only one window less opened but it's what I want.
Is this possible?
Thanks for reading
Guy