•   
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 11
  •   
Release script.toolbox
#76
hmm ok, now it makes a bit more sense to me Smile
gave it a quick shot, you can try it here: https://github.com/phil65/script.toolbox...ngs_export
Code:
<onclick>RunScript(script.toolbox,info=exportskinsettings,text=substring_from_setting)</onclick>
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#77
(2015-05-19, 16:22)phil65 Wrote: hmm ok, now it makes a bit more sense to me Smile
gave it a quick shot, you can try it here: https://github.com/phil65/script.toolbox...ngs_export
Code:
<onclick>RunScript(script.toolbox,info=exportskinsettings,text=substring_from_setting)</onclick>

Sorry didnt have been precise enough.
Works perfectly. Many Thanks Phil
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#78
RE: DialogTextViewer & $ESCINFO[]

PHP Code:
<onclick>RunScript(script.toolbox,info=textviewer,header=$INFO[ListItem.Label],text=$INFO[ListItem.Plot])</onclick

Results in plot cutting off at comma.

Code:
16:16:34 T:8280   DEBUG: script.toolbox: info=textviewer
16:16:34 T:8280   DEBUG: script.toolbox: header=22 Jump Street
16:16:34 T:8280   DEBUG: script.toolbox: text=After making their way through high school (twice)

Image

PHP Code:
<onclick>RunScript(script.toolbox,info=textviewer,header=$INFO[ListItem.Label],text=$ESCINFO[ListItem.Plot])</onclick

Results in no plot shown -

Code:
16:12:43 T:7908   DEBUG: script.toolbox: info=textviewer
16:12:43 T:7908   DEBUG: script.toolbox: header=22 Jump Street
16:12:43 T:7908   DEBUG: script.toolbox: text=

Image

Inserting a space before $ESCINFO -

PHP Code:
<onclick>RunScript(script.toolbox,info=textviewer,header=$INFO[ListItem.Label],text$ESCINFO[ListItem.Plot])</onclick

Results in full plot but with the added space and quotes around the plot.

Code:
16:11:06 T:8072   DEBUG: script.toolbox: info=textviewer
16:11:06 T:8072   DEBUG: script.toolbox: header=22 Jump Street
16:11:06 T:8072   DEBUG: script.toolbox: text= "After making their way through high school (twice), big changes are in store for officers Schmidt and Jenko when they go deep undercover at a local college."

Image

So is there any way this can be fixed?

Thanks.
Reply
#79
hmm could you also test '"$INFO[XXX]"' (--> single quotation mark(double quotation mark($INFO[])) and perhaps variations?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#80
I took a quick look into what I used myself, this here seems to work?
Code:
<onclick>SetProperty(Text,[B]$INFO[ListItem.TagLine,,[CR]][/B]$ESCINFO[ListItem.Plot],home)</onclick>
<onclick>RunScript(script.toolbox,info=textviewer,header=Plot,text='$ESCINFO[Window(home).Property(Text)]')</onclick>
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#81
Single then double quotes worked. Big Grin

Many thanks Phil.

EDIT: Just noticed this isn't in any of the official repos - any chance it can be added?

Thank.
Reply
#82
Hey Phil, could you update the first post on how to use the select dialog as it's the old method.

Thanks.
Reply
#83
Updated first post (I hope I got it right).
Yes, will put it on repo when time allows it.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#84
Cheers. Smile
Reply
#85
put together a small readme with examples for all stuff which is supported for now.
didnt have a closer look into this for some time, so please report if anything is wrong or missing:

Dialog call examples:

- DialogSelect

<onclick>SetProperty(Dialog.1.Label,SOME TEXT)</onclick>
<onclick>SetProperty(Dialog.1.BuiltIn,BUILTIN)</onclick>
<onclick>SetProperty(Dialog.2.Label,SOME TEXT)</onclick>
<onclick>SetProperty(Dialog.2.BuiltIn,BUILTIN)</onclick>
<onclick>SetProperty(Dialog.3.Label,SOME TEXT)</onclick>
<onclick>SetProperty(Dialog.3.BuiltIn,BUILTIN)</onclick>
<onclick>RunScript(script.toolbox,info=selectdialog,header=SOME_TEXT)</onclick>


- DialogYesNo

<onclick>RunScript(script.toolbox,info=yesnodialog,header=SOME_TEXT,text=SOME_TEXT,yesaction=BUILTIN,noaction=BUILTIN,yeslabel=SOME_TEXT,nolabel=SOME_TEXT)</onclick>


- DialogOK

<onclick>RunScript(script.toolbox,info=okdialog,header=SOME_TEXT,text=SOME_TEXT)</onclick>


- DialogTextViewer

<onclick>RunScript(script.toolbox,info=textviewer,header=SOME_TEXT,text=SOME_TEXT)</onclick>


- Notification with extended options

<onclick>RunScript(script.toolbox,info=notification,header=SOME_TEXT,text=SOME_TEXT,icon=PATH_TO_ICON,time=SECONDS_TO_DISPLAY,sound=TRUE/FALSE)</onclick>


Notes:
- use "|" to append several builtins
- escape stuff like following: '"$INFO[xxx]"'



other calls:

<onclick>RunScript(script.toolbox,info=exportskinsettings)</onclick>
<onclick>RunScript(script.toolbox,info=importskinsettings)</onclick>
<onclick>RunScript(script.toolbox,info=blur,id=PATH_TO_IMAGE)</onclick>
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#86
(2015-05-20, 21:17)phil65 Wrote: put together a small readme with examples for all stuff which is supported for now.
didnt have a closer look into this for some time, so please report if anything is wrong or missing:

Dialog call examples:

- DialogSelect

<onclick>SetProperty(Dialog.1.Label,SOME TEXT)</onclick>
<onclick>SetProperty(Dialog.1.BuiltIn,BUILTIN)</onclick>
<onclick>SetProperty(Dialog.2.Label,SOME TEXT)</onclick>
<onclick>SetProperty(Dialog.2.BuiltIn,BUILTIN)</onclick>
<onclick>SetProperty(Dialog.3.Label,SOME TEXT)</onclick>
<onclick>SetProperty(Dialog.3.BuiltIn,BUILTIN)</onclick>
<onclick>RunScript(script.toolbox,info=selectdialog,header=SOME_TEXT)</onclick>


- DialogYesNo

<onclick>RunScript(script.toolbox,info=yesnodialog,header=SOME_TEXT,text=SOME_TEXT,yesaction=BUILTIN,noaction=BUILTIN,yeslabel=SOME_TEXT,nolabel=SOME_TEXT)</onclick>


- DialogOK

<onclick>RunScript(script.toolbox,info=okdialog,header=SOME_TEXT,text=SOME_TEXT)</onclick>


- DialogTextViewer

<onclick>RunScript(script.toolbox,info=textviewer,header=SOME_TEXT,text=SOME_TEXT)</onclick>


- Notification with extended options

<onclick>RunScript(script.toolbox,info=notification,header=SOME_TEXT,text=SOME_TEXT,icon=PATH_TO_ICON,time=SECONDS_TO_DISPLAY,sound=TRUE/FALSE)</onclick>


Notes:
- use "|" to append several builtins
- escape stuff like following: '"$INFO[xxx]"'



other calls:

<onclick>RunScript(script.toolbox,info=exportskinsettings)</onclick>
<onclick>RunScript(script.toolbox,info=importskinsettings)</onclick>
<onclick>RunScript(script.toolbox,info=blur,id=PATH_TO_IMAGE)</onclick>

Thanks for this. Much more clear on what can be done Nod

Maybe this can be written like this ? Wink
Code:
<onclick>RunScript(script.toolbox,info=exportskinsettings[,text=SOME_TEXT])</onclick> ([,text=SOME_TEXT] optional string filter)
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#87
(2015-05-20, 22:02)Jayz2K Wrote: Thanks for this. Much more clear on what can be done Nod

Maybe this can be written like this ? Wink
Code:
<onclick>RunScript(script.toolbox,info=exportskinsettings[,text=SOME_TEXT])</onclick> ([,text=SOME_TEXT] optional string filter)

added it: https://github.com/phil65/script.toolbox...5874646aab
I also sent the PR for official repository inclusion some minutes ago.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#88
How exactly do you append several builtins?

I've tried these ways but they didn't work -

PHP Code:
SetProperty(Dialog.1.BuiltIn,Skin.SetString(MovieWidget1,special://skin/extras/video/InProgressMovies.xsp))|SetProperty(Dialog.1.BuiltIn,Skin.SetString(MovieWidgetName1,In Progress Movies))
SetProperty(Dialog.1.BuiltIn,Skin.SetString(MovieWidget1,special://skin/extras/video/InProgressMovies.xsp)|Skin.SetString(MovieWidgetName1,In Progress Movies)) 
Reply
#89
oh, sorry, error in ReadMe. try "||"
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#90
Cheers, and which one of my attempts above should I use them with?
Reply
  •   
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 11
  •   



Logout Mark Read Team Forum Stats Members Help
script.toolbox2
This forum uses Lukasz Tkacz MyBB addons.