2018-10-30, 10:04
Hi, sorry if i miss something in aknowledgement but i have some trouble understand it, because it working differently.
1: Homescreen
I have an Vertical Home Menu, where i like to use the shutdown menu when click <onback>
(since on left is open submenu, on right focuses widgets in my case)
<onback condition="!Skin.HasSetting(DisablePowerMenu)">ActivateWindow(ShutdownMenu)</onback> <!-- forces autoclose settings.xml after choose -->
This works well, to open it and choose between the buttons i set , but if i want to open Window(settings) / settings.xml , just that window auto closes itself
(all others hortcuts inside the group working without issues).
If i use the keybord key "s", or <onleft>, or <onright> tags, all is working without issues. (no autoclose)
Does <onback> perform some hidden things ?
2. Stop Playback
In my VideoInfo ihave the option in the skin to perform automatic trailer playback on load.
I have set a button inside a grouplist , to use perform a stop .
The Issue - If i use the button 204, the trailer will play in loop.
If i perform Stop via the "x" on keyboard i didt get the unwished loop effect.
(PS: button "9005" is just for use on first load up, i'll not gain focus again, till re-open the movieinformation window)
Is there something i miss on that behaviours (key cmds versus <on**> tags) ?
Is there a possible workararound to perform "press key" actions inside the <on***> tags ?
1: Homescreen
I have an Vertical Home Menu, where i like to use the shutdown menu when click <onback>
(since on left is open submenu, on right focuses widgets in my case)
<onback condition="!Skin.HasSetting(DisablePowerMenu)">ActivateWindow(ShutdownMenu)</onback> <!-- forces autoclose settings.xml after choose -->
This works well, to open it and choose between the buttons i set , but if i want to open Window(settings) / settings.xml , just that window auto closes itself
(all others hortcuts inside the group working without issues).
xml:
shortcut actions
<onclick condition="Window.IsActive(DialogButtonMenu.xml)">Close</onclick>
<onclick>ActivateWindow(Settings)</onclick>
If i use the keybord key "s", or <onleft>, or <onright> tags, all is working without issues. (no autoclose)
Does <onback> perform some hidden things ?
2. Stop Playback
In my VideoInfo ihave the option in the skin to perform automatic trailer playback on load.
xml:
<control type="button" id="9005">
<onfocus condition="!Skin.HasSetting(UseExtendedInfoDialog) + Skin.HasSetting(videoinfo_traileraction,auto) + [[String.IsEqual(Window(Home).Property(contenttype),movies) | String.IsEqual(ListItem.DBTYPE,movie)] | ![String.IsEqual(Window(Home).Property(contenttype),tvshows) | String.IsEqual(ListItem.DBTYPE,tvshow)]]">PlayMedia($INFO[ListItem.Trailer],1)</onfocus>
<onfocus condition="!Skin.HasSetting(UseExtendedInfoDialog) + Skin.HasSetting(videoinfo_traileraction,auto) + [![String.IsEqual(Window(Home).Property(contenttype),movies) | String.IsEqual(ListItem.DBTYPE,movie)] | [String.IsEqual(Window(Home).Property(contenttype),tvshows) | String.IsEqual(ListItem.DBTYPE,tvshow)]]">RunScript(script.skin.helper.service,action=playtraileryoutube,title=$INFO[ListItem.Title],local=true)</onfocus>
</control>
I have set a button inside a grouplist , to use perform a stop .
xml:
<control type="button" id="204">
<!-- stop trailer -->
<label>Stop</label>
<width>285</width>
<height>40</height>
<align>center</align>
<textoffsetx>0</textoffsetx>
<onclick>Stop</onclick> <!-- also tried <onclick>PlayerControl(Stop)</onclick> -->
<visible>Player.HasVideo</visible>
</control>
The Issue - If i use the button 204, the trailer will play in loop.
If i perform Stop via the "x" on keyboard i didt get the unwished loop effect.
(PS: button "9005" is just for use on first load up, i'll not gain focus again, till re-open the movieinformation window)
Is there something i miss on that behaviours (key cmds versus <on**> tags) ?
Is there a possible workararound to perform "press key" actions inside the <on***> tags ?