i try to set the Focus to the currently playing item in MyPlaylist Window / View.
what i can tell is that it dont work the way i try it, just why?
i already try different variations, non of them did have the effect im after. Hard for me to tell why it doesnt work.
here is what i try so far:
PHP Code:
V1:
<onload condition="Window.IsActive(musicplaylist) + Container(55).OnNext + !Skin.String(MusicPlayer.PlaylistPosition,Container(55).Position)">SetFocus(55,MusicPlayer.PlaylistPosition)</onload>
V2:
<onload condition="Window.IsActive(musicplaylist) + Container(55).OnNext + !Skin.String(MusicPlayer.PlaylistPosition,Container(55).Position)">SetFocus(55,$INFO[MusicPlayer.PlaylistPosition])</onload>
V3:
<onload condition="Window.IsActive(musicplaylist) + System.IdleTime(5) + !Skin.String(MusicPlayer.PlaylistPosition,Container(55).Position)">SetFocus(55,MusicPlayer.PlaylistPosition)</onload>
Where “55” is the ID of the View im using.
Could someone enlighten me where i did the mistake here, and if this is even possible with the current Skinningengin?
Regards
EDIT:
Did also try it this way, (even if it would be horrible codingwise for a Playlist with 1000+ items).
PHP Code:
<onload condition="Window.IsActive(musicplaylist) + System.IdleTime(5) + String.IsEqual(MusicPlayer.PlaylistPosition,1)">SetFocus(55,1)</onload>
<onload condition="Window.IsActive(musicplaylist) + System.IdleTime(5) + String.IsEqual(MusicPlayer.PlaylistPosition,2)">SetFocus(55,2)</onload>
<onload condition="Window.IsActive(musicplaylist) + System.IdleTime(5) + String.IsEqual(MusicPlayer.PlaylistPosition,3)">SetFocus(55,3)</onload>
<onload condition="Window.IsActive(musicplaylist) + System.IdleTime(5) + String.IsEqual(MusicPlayer.PlaylistPosition,4)">SetFocus(55,4)</onload>
<onload condition="Window.IsActive(musicplaylist) + System.IdleTime(5) + String.IsEqual(MusicPlayer.PlaylistPosition,5)">SetFocus(55,5)</onload>
...