Release script.toolbox - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300) +---- Thread: Release script.toolbox (/showthread.php?tid=207618) |
RE: script.toolbox - phil65 - 2015-05-19 hmm ok, now it makes a bit more sense to me gave it a quick shot, you can try it here: https://github.com/phil65/script.toolbox/tree/partial_settings_export Code: <onclick>RunScript(script.toolbox,info=exportskinsettings,text=substring_from_setting)</onclick> RE: script.toolbox - Jayz2K - 2015-05-19 (2015-05-19, 16:22)phil65 Wrote: hmm ok, now it makes a bit more sense to me Sorry didnt have been precise enough. Works perfectly. Many Thanks Phil RE: script.toolbox - Hitcher - 2015-05-20 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 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 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 So is there any way this can be fixed? Thanks. RE: script.toolbox - phil65 - 2015-05-20 hmm could you also test '"$INFO[XXX]"' (--> single quotation mark(double quotation mark($INFO[])) and perhaps variations? RE: script.toolbox - phil65 - 2015-05-20 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> RE: script.toolbox - Hitcher - 2015-05-20 Single then double quotes worked. Many thanks Phil. EDIT: Just noticed this isn't in any of the official repos - any chance it can be added? Thank. RE: script.toolbox - Hitcher - 2015-05-20 Hey Phil, could you update the first post on how to use the select dialog as it's the old method. Thanks. RE: script.toolbox - phil65 - 2015-05-20 Updated first post (I hope I got it right). Yes, will put it on repo when time allows it. RE: script.toolbox - Hitcher - 2015-05-20 Cheers. RE: script.toolbox - phil65 - 2015-05-20 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> RE: script.toolbox - Jayz2K - 2015-05-20 (2015-05-20, 21:17)phil65 Wrote: put together a small readme with examples for all stuff which is supported for now. Thanks for this. Much more clear on what can be done Maybe this can be written like this ? Code: <onclick>RunScript(script.toolbox,info=exportskinsettings[,text=SOME_TEXT])</onclick> ([,text=SOME_TEXT] optional string filter) RE: script.toolbox - phil65 - 2015-05-20 (2015-05-20, 22:02)Jayz2K Wrote: Thanks for this. Much more clear on what can be done added it: https://github.com/phil65/script.toolbox/commit/869f5f4f68efdebe29e4ce1ac3418b5874646aab I also sent the PR for official repository inclusion some minutes ago. RE: script.toolbox - Hitcher - 2015-05-21 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)) RE: script.toolbox - phil65 - 2015-05-21 oh, sorry, error in ReadMe. try "||" RE: script.toolbox - Hitcher - 2015-05-21 Cheers, and which one of my attempts above should I use them with? |