activatewindow: Jumping to subfolder in source
#1
Hello all

OS: Windows 7 build 7600
XBMC (dx-build): Built on Oct 12 2009 (SVN:23658, compiler 1500)

I am currently defining a custom userdata/keymaps/keyboard.xml, creating among other things some shortcuts to the libraries, and the video/music file views. Here is a code snippet:

Code:
<f1>xbmc.activatewindow(videolibrary,movietitles)</f1>
<f2>xbmc.activatewindow(videolibrary,tvshowtitles)</f2>
<f3>xbmc.activatewindow(musiclibrary,artists)</f3>
<f4>xbmc.activatewindow(pictures,media)</f4>
<f5>xbmc.activatewindow(videofiles,'media\Incoming')</f5>
<f6>xbmc.activatewindow(musicfiles,'media\Incoming')</f6>

Keys F1-F4 works as expected, but F5-F6 only jumps me to the root of the files view, i.e. from there I can open the "media" source, and then open the Incoming folder. I would like to go directly to the subfolder "Incoming" instead. I think I have tried all permutations of the folder argument now, i.e. forward and backslashes, quotes and double quotes, and nothing seems to work.

Thing is, I currently have something similar working on my xbox installation, here is what that looks like:

Code:
<obc90>XBMC.ReplaceWindow(videofiles,'Movies')</obc90>
<obc118>XBMC.ReplaceWindow(videofiles,'Incoming\Movies')</obc118>
<obc83>XBMC.ReplaceWindow(videofiles,'TV')</obc83>
<obc117>XBMC.ReplaceWindow(videofiles,'Incoming\TV')</obc117>
<obc144>XBMC.ReplaceWindow(musicfiles,'Archive')</obc144>
<obc5>XBMC.ReplaceWindow(musicfiles,'Incoming\Music')</obc5>

I've tried using replacewindow instead of activatewindow in my keyboard.xml, but that didn't seem to help.

Any ideas?

Best regards,
Tusse
Reply
#2
that's a PATH not some mix of a source name and a path. feed it the full path and it will work.
Reply

Logout Mark Read Team Forum Stats Members Help
activatewindow: Jumping to subfolder in source0