Has XBMC.ActivateWindow implementation changed?
#1
Hi all

About a year ago I modified PMIII to create a very simple skin for my technophobic family to use. It that gave them a home screen with buttons that linked directly to certain types of videos, so they could jump directly to TV shows or Movies or Documentaries etc.

Since upgrading to the 8.10 T3CH build my skin no longer works properly, now instead of going to a specific subfolder all the buttons jump to the standard MyVideos folder.

I had sources set up something like this:

Code:
<video>
       <source>
            <name>TV Shows</name>
            <path>smb://ServerName/Media/TV Shows/</path>
        </source>
</video>

And the skin used code like this:

Code:
<control type="button" id="2">    
    <onclick>ActivateWindow(MyVideos,TV Shows)</onclick>
</control>

Has the syntax of the ActivateWindow command changed? Is there another way to have a button jump directly to a specific folder?
Reply
#2
Geddon Wrote:
Code:
<control type="button" id="2">    
    <onclick>ActivateWindow(MyVideos,TV Shows)</onclick>
</control>
Has the syntax of the ActivateWindow command changed? Is there another way to have a button jump directly to a specific folder?

try this one instead:


Code:
<onclick>ActivateWindow(videolibrary,tvshowtitles)</onclick>
to go directly to your tv-show library
or if you want to stick with file view mode and access your sources directly use

Code:
<onclick>ActivateWindow(video,tvshows)</onclick>

an actual list with the current window ids can be found here
cheers,azido :;):
Reply
#3
i.e. what changed is the 'myvideos' window name
Reply
#4
Many thanks for the quick answers, that got it working again.

Just for reference (for the 6 people still using XBMC in file mode rather than library mode!) the command is:

Code:
ActivateWindow(videofiles,[i]dir[/i])

Where dir is the name you gave to the source.
Reply
#5
sorry to post here but i am trying to do something similar...

i have my movies and series using db mode

but now i want to add another video section without db

i used ActivateWindow(videofiles,dir) but i alway open movies db

any idea on what i am doing bad....

why may you ask....

i want my kid movies to be all together in a list separated from the db...


thanks....
Reply
#6
Ok, I'm confused. I'm trying to jump directly to a source in my Pictures sources, but the following doesn't work. It just takes me to the source list. Any ideas what I'm doing wrong?

<onclick>XBMC.ActivateWindow(pictures, Comics)</onclick>

I've also tried the actual path, no luck Sad
Reply
#7
no space after the ,
Reply
#8
Jezz_X Wrote:no space after the ,
Cool, worked great, thanks!

I've been writing software in a number of languages since the 80's and I've never seen an issue of whitespace in function arguments before so I didn't even think of that Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Has XBMC.ActivateWindow implementation changed?0