Wrote a script. It sets a nice random(ish) wallpaper tint.
Wrote a script. It sets a nice random(ish) wallpaper tint.
]]>
« How do I change the wallpaper in apps drawer? It always changes my desktop, but not my app drawer? (Previous Post)
(Next Post) Title »
< ![CDATA[
What I’d like to be able to do is have the script automatically run occasionally. Is this feasible?
]]>
< ![CDATA[
I personally have a similar script (it changes the color of some items’s background semi-randomly, but the idea is the same) set in the resumed event of the desktop. This way you are sure that the desktop changes when it is loaded. It works fine in my opinion, although sometimes you see the ‘refresh’ of the color.
]]>
< ![CDATA[
I actually tried that first. The trouble is, it causes a brief stutter in the moment you most expect responsiveness.
Maybe it can be hooked in to General > Events > Screen Off somehow…
]]>
< ![CDATA[
Because you are changing a container’s properties.
That’s why I’m changing an item background (two to be more exact)
This is my script, adapt it if you want 🙂
if(LL.isPaused())return;
var rand=(parseFloat(LL.getScriptTag()||”0″)+90+Math.random()*180)%360;
LL.setScriptTag(rand);
var c=LL.getEvent().getContainer();
//alert(c)
setbg(c.getItemByName(“bar”),rc(255/2,rand));
setbg(c.getItemByName(“background”),rc(255/8,rand));
function rc(a,h){
return Color.HSVToColor(a,[h,1,1]);
}
function setbg(it,c){
var p=it.getProperties().edit()
p.getBox(“i.box”).setColor(“c”,”n”,c);
p.commit();
}
]]>
< ![CDATA[
Suddenly, It can’t work.
]]>
< ![CDATA[
My code still works for me
]]>