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[
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…
]]>
< 
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
]]>