2016-03-25, 08:11
Hi..
the first action RunScript() breaking something... can you take a look please?
Edit:
Got it, it's the comma that breaking it. (,type=resetall)
how to esc commas?
Edit2:
ok, it's not only the comma, its the equal sign too (you're using params.get function)
so we need to escape the "=" too.
so I played with it a little bit, and changed my command to:
and then the code to:
and:
and Its working. but I guess that you'll have a better solution.
Code:
<onclick>RunScript(script.skin.helper.service,action=dialogyesno,header=foo,message=bar,yesaction=RunScript(script.skinshortcuts,type=resetall)|ReloadSkin())</onclick>
the first action RunScript() breaking something... can you take a look please?
Edit:
Got it, it's the comma that breaking it. (,type=resetall)
how to esc commas?
Edit2:
ok, it's not only the comma, its the equal sign too (you're using params.get function)
so we need to escape the "=" too.
so I played with it a little bit, and changed my command to:
Code:
yesaction=RunScript(script.skinshortcuts:comma:type:equal:resetall)
and then the code to:
Code:
yesactions = params.get("YESACTION","").replace( ":equal:", "=" ).split("|")
and:
Code:
for action in yesactions:
action = action.replace( ":comma:", "," )
xbmc.executebuiltin(action.encode("utf-8"))
and Its working. but I guess that you'll have a better solution.