March, 2014
now browsing by month
9.9.10 introduced a bug involving array .split() function staying regEx is not allowed..
Find items script
This script will go through all the items in the container were it was launched. It will show basic info about it, and the item will be in the topleft corner. ( then a zoom out will shows you where it is)
Also, the script automatically make the items with Alpha 255, the frontmost and will unpin it. To keep these modifications (in case the item was lost somewere) stop the script from the popup. If not, the original settings will go back.
(to sum up: in the “continue?” popup, Yes->no changes; No->changes and stop)
Any suggestions about more info to show, or changes to make are welcomed. Feel free to comment.
Instructions: Just copy\paste and run.
—————————————
var desk=LL.getEvent().getContainer();
var px = desk.getPositionX();
var py = desk.getPositionY();
var ps = desk.getPositionScale();
var items=desk.getItems();
for(var i=items.getLength()-1;i>=0;–i){
var item = items.getAt(i);
var data = [];
data[0] = item.getProperties().getInteger(“i.alpha”);
data[1] = item.getProperties().getString(“i.pinMode”);
data[2] = desk.getItemZIndex( item.getId() );
desk.setItemZIndex(item.getId() , 100000);
item.getProperties().edit().
setInteger( “i.alpha” , 255).
setString(“i.pinMode”,”NONE”).
commit();
var zoom = Math.min( desk.getWidth() / item.getScaleX() / item.getWidth(), desk.getHeight() / item.getScaleY() / item.getHeight());
desk.setPosition( item.getPositionX() , item.getPositionY() , zoom,true );
var type = item.getType();
var info = “Item found:”;
info+=”\n-Type: “+ type;
if(type==”Shortcut” || type==”Folder”) info+=”\n-Label: “+item.getLabel();
info+=”\n-Id: “+item.getId();
info+=”\n-Pin Mode: “+data[1];
info+=”\n-Alpha: “+data[0];
info+=”\n-Tag: “+item.getTag();
info+=”\n-Visibility: “+item.isVisible();
info+=”\n-Z Index: “+data[2];
alert(info);
var n = 3;//zoom out
desk.setPosition( item.getPositionX()-desk.getWidth()/zoom*(n-1)/2,item.getPositionY()-desk.getHeight()/zoom*(n-1)/2,zoom/n,true );
if( !confirm(“Continue? (If not, Zindex,alpha and PinMode won’t get back)”) )return;
desk.setItemZIndex(item.getId() , data[2]);
item.getProperties().edit().
setInteger( “i.alpha” , data[0]).
setString(“i.pinMode”, data[1]).
commit();
}
desk.setPosition(px,py,ps,true);
Android.makeNewToast(“no more items found”,false).show();
]]>I have a question (i already got the answer some months ago but forgot it and i can’t find it.
On my desktop, i have many objets (widgets, folders, panels …) and several of them are unvisible (transparent) and some zooper widgets are configures to do an action when i click on them (and thus i cannot go directly to their configuration).
How can i find the list of all widgets / objets of my desktop ? Thanks in advance
]]>Why do I get a NullPointerException in this script? It is launched by desktop load event. The IDs are correct.
var d = LL.getHomeDesktop();
d.getItemById(116).setVisibility(false);
d.getItemById(117).setVisibility(false);
d.getItemById(118).setVisibility(false);
]]>Is there a way to copy items from one desktop to another?
v9.9.11 beta
A bug fixes only, for the following issues:
– some fixes related to the app drawer (need a reset to resolve mixed icons issue). But I am not 100% sure that all problems have been solved (partly device dependent).
– fix script LL.getCurrentDesktop() (solves the bug with the pin code lock screen)
– fix script Folder.close()
– fix script Item.setSize()
Available soon, but I don’t know when exactly because it seems that Google servers are experiencing issues right now
Edit: definitely, some servers are down at the moment
]]>#dock
+Danbar Danbar, if you put your dock items inside a panel that does not rotate, with the dock line at top, and enable rotation for items within panel, it might work for you. Pin the panel, and enable scrolling for panel, if needed. Here’s a quick example:
]]>