How to pass script data when using event handler to run a script?
How to pass script data when using event handler to run a script? The only parameter to add is the script id according to the documentation.
When using the runScript() function passing additional information is possible.
Am I missing something?
Pierre Hébert
]]>« V14.1b1 beta (Previous Post)
< ![CDATA[
You need to gather id and data as described here : http://www.lightninglauncher.com/scripting/reference/api/reference/net/pierrox/lightning_launcher/script/api/EventHandler.html#getData()
This is rather dumb, concatenate both id and data using / as separator.
Also there are a few new APIs in the beta, in particular for this EventHandler class (http://www.lightninglauncher.com/scripting/reference/api-beta/)
]]>
< ![CDATA[
Thanks for the quick answer.
Never thought it was that easy. Of course it works 🙂
Cheers once again.
]]>