Hi, I am looking for a way to change my wallpaper automatically every weeks.
I found that script wich change the wallpaper every times it is launched.
I dont know how to script at all, so maybe someone can make the necessary changes to make it work the way I want ?
Here is the script :
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);
]]>