Hi
Hi,
Is there a way in LL to make my desktop background or system background to change automatically like every months ?
]]>(Next Post) Script not working »
< ![CDATA[
with script yeah pretty much everything’s possible
]]>
< ![CDATA[
Yeah that’s what I though; I dont know how to script…
Maybe you do know ?
]]>
< ![CDATA[
its probably already done have a look in the script repo
]]>
< ![CDATA[
Nop I can not find one doing this in the repository :/
]]>
< ![CDATA[
ah well might be worth searching the community some scripts don’t get posted to the repo, none of mine do.
]]>
< ![CDATA[
Ok I will try to find this, thx
]]>
< ![CDATA[
I found this, but how am I suppose to use this ?
How to load it as a script, and how to setup the location folder for my pictures ?
The creator also says this does not handle errors, what does it mean ?
Can someone help me with it please ?
In case this was interesting to anyone, here’s a wallpaper changer script assuming your wallpapers are in a specific directory. It doesn’t handle errors or anything, but it might help anyone trying to do something similar.
LL.bindClass(“java.lang.Runtime”);
LL.bindClass(“java.io.File”);
var wallpaper_dir = new File(“/storage…”) //replace with wallpaper directory
var container_id = LL.getCurrentDesktop().getId() ;
var ll_wallpaper = new File(LL.getContext().getFilesDir() + “/pages/” + container_id + “/wp”);
ll_wallpaper.delete();
var wallpaper_list = wallpaper_dir.listFiles()
var index = Math.floor((Math.random() * wallpaper_list.length));
var rt = Runtime.getRuntime()
rt.exec(“cp ” + wallpaper_list[index].getAbsolutePath() + ” ” + ll_wallpaper.getAbsolutePath());
LL.runAction(EventHandler.RESTART);
]]>
< ![CDATA[
change /storage…. to the path of the folder that has your images it must go inside of the quotes eg. “your path goes here”. who wrote this do you have a link to it.
]]>
< ![CDATA[
as for how to load it open your app drawer tap on script editor paste in the script swipe on the left side of the screen to pull out the drawer name the script anything you want just so you can recognize it later. Press on the box that says lightning menu and close the script editor. Go back to your homescreen long press the desktop press scripts you should see the script with the name^ there press it.
]]>
< ![CDATA[
yeah, here it is:
https://plus.google.com/u/0/103306630954531427628/posts/4ztdDwTTDFC
]]>
< ![CDATA[
Thanks for the help, I tried it, but it is not working :/
When i click on scripts and pick my wallpaper script, the screen kind of flashs and nothing happens :/
Also, could you tell me what to change in the script to make it change the wallpaper every 1st of a month ?
]]>
< ![CDATA[
just tried it from what I can tell it works great every time you run it a different image is displayed. Shouldn’t be to hard to modify it to do what you want. Will have a go at doing it in the morning
]]>
< ![CDATA[
Ok cool, thx to you. I will make a screen record to show how it is not working. Maybe you will have an idea. Will do it tomorrow. Thx again.
]]>
< ![CDATA[
I tried to share the screen record in this conversation, but I failed…I hope the link will work.
https://plus.google.com/u/0/photos/photo/106626580584827734373/6622311564882781698?sqid=111427002111904170930&ssid=20630603-fe50-47d8-84f4-a7b02d53d17c
If not maybe this link
https://plus.google.com/u/0/106626580584827734373/posts/RBkUS6JrL8z
]]>