hello, I have created an empty object without icon and text, just a box background picture.
hello, I have created an empty object without icon and text, just a box background picture.
How can i reload the picture with a script? Maybe with Tasker or Automagic.
]]>
< ![CDATA[
Hi Sascha, it would indeed be possible using a script (I think), I was actually just starting to learn how to do those so I’m settibg myself the challenge of answering that one for you tonight. I’ll stick with it and let you know if I find a solution.
]]>
< ![CDATA[
This is what I use to reload the item ‘map’ from the file located at /storage/emulated/0/Tasker/map.png. The script can be called from Tasker. The filename can also be a Tasker variable, in which case you use the getData approach described in
http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=working_with_tasker
var item=LL.getCurrentDesktop().getItemByName(‘map’);
var image=LL.createImage(‘/storage/emulated/0/Tasker/map.png’);
item.setBoxBackground(image, “nsf”, true);
]]>
< ![CDATA[
Thanks for reply. Not working. Is it possible to change or refresh the box background picture with a lightninglauncher script? Maybe Pierre Hébert can help. Or TrianguloY
]]>
< ![CDATA[
Finaly after a lot reading the script api it works! Thanks Wern-Yuen Tan . I modified your script, now it works without tasker, directly in LLX.
]]>