Archives

now browsing by author

 

Hi, i want to create item and set event, all by script.

Hi, i want to create item and set event, all by script. On long press execute another script (for example delete this item). How to do it?

Do you want see something crazy?

Do you want see something crazy?

So tell me what ID the panel has: 0x000068 or 0x01000f ? YES, IT IS THE SAME PANEL!!!

Pierre Hébert​ have you ever somthing like that???

Hi, i’ve got a question: how to check are container exist?

Hi, i’ve got a question: how to check are container exist? It’s very strange, but i can use for example LL.getContainerById(0x999999) and no warning or something…

Hi, I’m writing a small script to add an item to desktop

Hi, I’m writing a small script to add an item to desktop

var l = LL.getCurrentDesktop();

var item=l.getItemByLabel(“foo”);

if (!item){

var item=l.addShortcut(“foo”,new Intent(),600,1200);

}

ce=item.getProperties().edit();

   ce.setBoolean(“i.onGrid”,false);

ce.setString(“s.labelVsIconPosition”,”RIGHT”);

   box=ce.getBox(“i.box”);

   box.setAlignment(“LEFT”,”MIDDLE”);

ce.commit();

item.setSize(150,150);

item.setRotation(315);

Android.makeNewToast(“Done”,true).show();

It works, but item’s position is X 544,934 Y 1134,648. How to fix it?