Close a window?
#1
How do you close a window, not a dialog?
Reply
#2
It displays the previous window first. How do you make it go directly to a window?
Reply
#3
Again, you should read the wiki Tongue

http://kodi.wiki/view/List_of_built-in_functions

-> ActivateWindow(window[,dir,return])
-> ReplaceWindow(window,dir)
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#4
All of the Windows are using ReplaceWindow with return at the end. And it still displays the previous window first. I also tried ActivateWindow with ReplaceWindow and get the same results. I even tried the Action(Close) and still the previous window, opens for some seconds and then I get the other window.
Reply
#5
Code?
Reply
#6
ActivateWindow(window,dir,return) and then ReplaceWindow(window,dir,return) or
ReplaceWindow(window,dir,return) for all windows.
Reply
#7
You dont want to use the return parameter in this case.
Reply
#8
In favourites XML there is no previous window showing. But in python, I have to remove " for it to work. And that's when I get the previous window appearing first. Does favourites XML use a different way in executing an xbmc built-in command? So for the Python it's ReplaceWindow(window,dir) and favourites is ReplaceWindow(window,"dir&quotWink
Reply
#9
Favourites is a dialog so there's always an underlying window.
Reply
#10
(2016-07-12, 13:14)sualfred Wrote: Again, you should read the wiki Tongue

http://kodi.wiki/view/List_of_built-in_functions

-> ActivateWindow(window[,dir,return])
-> ReplaceWindow(window,dir)
I saw that in the wiki there is no command to close a specific window, ex:
if I want to close a window with a specific ID, and this window is not a dialog, the only way to do it I think is the following:

xml:
ReplaceWindow(2109, )

(2109 is the ID of the window to close)

Is this the correct way to close a window or is there something I'm missing?


Thank you for your help.
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi 20.x stable release | Skin Confluence (by Jezz_X)
I like editing skins ❤
Reply
#11
No, you need specify the window you want to show after closing (replacing) the current one. You can't just close a window because there would nothing on screen.
Reply
#12
@Hitcher

Ok, thanks for explaining me how it works.
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi 20.x stable release | Skin Confluence (by Jezz_X)
I like editing skins ❤
Reply

Logout Mark Read Team Forum Stats Members Help
Close a window?0