Kodi Community Forum
Can't use return with ActivateWindow(VideoFiles)? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Can't use return with ActivateWindow(VideoFiles)? (/showthread.php?tid=64244)



Can't use return with ActivateWindow(VideoFiles)? - fbacher - 2009-12-16

<onclick>ActivateWindow(VideoFiles,T:\Video)</onclick>

works but then parentNode (back button) returns to T:\
so, I changed it to:

<onclick>ActivateWindow(VideoFiles,T:\Video,return)</onclick)

and now the ActivateWindow goes to: T:\ instead (the list shows "Video")

If I change it to

<onclick>ActivateWindow(VideoFiles,T:\Video\Comedy,return)</onclick

the ActivateWindow presents an empty list. Taking the ",return" makes it work as expected.

What's happening? :confused2:


- fbacher - 2009-12-16

Ah, a careful reading of http://wiki.xbmc.org/?title=List_of_Built_In_Functions indicates that the "return" parameter is only valid for some windows and only lists MusicLibrary and VideoLibrary as ones that definitely support it. Perhaps that is the problem?

Oh yes, xbmc is in Library mode at the time ActivateWindow is called.


- Jezz_X - 2009-12-16

See here http://trac.xbmc.org/ticket/7032


- fbacher - 2009-12-16

Thanx. I added my two-cents worth to the ticket. I'll work around the problem for now.