April, 2014
now browsing by month
Is it possible (maybe with script) to set panel with automatically updated content – for example only freshly…
I didnt feel like typing the report this time so i recorded the report.
One tip for editing SCRIPT
I’ve just found this tip.
When creating, editing, testing LLx script, its inconvienient of using phone’s soft keyboard, if a script has not a few line.
Do you use Samba Server app? First run this app.
In Script Editor app, tap “Edit…” button.
Then probably a popup will open for selecting your fav editor. In that time, LLx creates a JS file /LLfoder../tmp/script.js
In your PC, go to //your_phones_samba_name/LLx../tmp and open script.js file with your PC editor like Notepad++.
Edit and save in PC, and in your phone, open phone’s editor, then you will see just edited contents, and back to Script Editor.
]]>Galaxy s2 weather widgets keep saying cannot load. I’ve tried 10 widget apps.
Holes
Holes
This is a script that will move a panel to the opposite of the desktop, to give the illusion that it is a hole.
Check the video to better understanding. It is difficult to understand I know, but the fact is that both are panels, both are placed relative to the screen, not the desktop. That’s why it makes the illusion of holes, but they are panels!
It works also with zoom, and it move all the panels labeled “Hole” in the container.
It works also with panels inside folders, panels inside panels, etc. But to avoid misunderstanding the instructions says ‘desktop’ for the parent and ‘panels’ for the child panels it has.
Have in mind that you will be able to see only the main page of the panel, it’s recommended to check ‘use desktop size’ under layout on the panels settings. This will help you setting it.
Instructions:
– Copy/paste this script as a new one.
– Set it to run on the position change event of the desktop. Only the desktop, NOT the panels!
– Label the panels you want to as “Hole”, the others won’t work;
– [Optional] Disable the scrolling of the panels (Scroll direction: No scrolling at all)
– [Optional] Check the no scroll limit of the desktop, disable snap to pages and enable pinch to zoom and diagonal scrolling to move freely the panel.
These last two instructions are just optional, maybe you find an awesome way of using this script without them.
Pierre Hébert: This is the script that shows why you need to round the position, in case you want to test.
There is also another bad behavior that is shown when using this script. If you zoom the desktop, the panel will unzoom, but in edit mode the grid lines and the helpers are really really big, because the panel think it is really big (and it is, but not for the user). Not exactly a bug, but maybe you can think in this to give them an absolute size relative to the screen, not the container and their zoom.
——————————
//Vars
var desk =LL.getEvent().getContainer();
var scale = desk.getPositionScale();
var items=desk.getItems();
//for each item
for(var i=items.getLength()-1;i>=0;–i){
var panop = items.getAt(i);
if(panop.getLabel()!=”Hole” || panop.getType()!=”Panel”)continue;//only panels labeled “Hole”
var pan=panop.getContainer();
//Relative position
var posX= Math.round(panop.getPositionX())-desk.getPositionX();
var posY= Math.round(panop.getPositionY())-desk.getPositionY();
//The offset of the position if the panel has margins/borders/padding respectively
//if your pannels don’t have, you can comment this section to avoid extra operations
var prop=panop.getProperties().getBox(“i.box”); posX+=prop.getSize(“ml”)+prop.getSize(“bl”)+prop.getSize(“pl”); posY+=prop.getSize(“mt”)+prop.getSize(“bt”)+prop.getSize(“pt”);
//the final position
pan.setPosition( posX*scale , posY*scale ,1/scale,false);
}
]]>Coloring My Drawer
https://github.com/alogblog/coloringMyDrawer/blob/master/coloringMyDrawer.js
How to use:
1. Copy and paste code into script editor.
2. Insert LL’s “Restart app” shortcut into a desktop.
3. Go to My Drawer, and open its setting.
4. In events option, set Load action to Run Script/your pasted one.
5. Run “Restart app* shortcut.
6. Go to My Drawer again.
7. Then script will ask some option, just select default.
Non latin alphabet users
In the script, you can edit an array for your alphabet’s grouping chars.
Limit on current LLx(10.0.2)
1. LLx’s script engine doesnt do setCell() API permanently. So after you set each app blocks to start from new line, and exit from drawer, its changed position is restored. T.T
Hence until LLx can do it permanently, its of no use.
2. We can’t run this script out of drawer. LLx item.setCell() API doesnt work if item is not loaded. So we used Restart app method for using LOAD event.
LL’s Bug?
If we set drawers LOAD action, strangedly LLx run its action on loading and UNLOADING.



Upgraded phone from Razr Maxx running Android 4.2 to Droid Maxx, and then Samsung S5, the later two running 4.4.
– pressing the power button closes or minimizes the running app
– occasionally, the screen doesn’t respond to finger touches, but does scroll (I can see all my desktops, but pressing an icon does nothing.) Eventually this clears up (most reliably by pressing recent apps, selecting on, then all is well for a while.)
Seems pretty strange. Maybe I’m missing something?
Thanks,
]]>Can anyone help me with “runScript” and “getData”? There seems to be a problem with passing the parameter…
script1:
LL.runScript(“script2″,”myPanel”);
script2:
var d = LL.getCurrentDesktop();
var e = LL.getEvent();
var p = e.getData();
alert(p);
var i = d.getItemByLabel(p);
I have a panel labeled “myPanel” on the desktop.
I run script1 from a shortcut.
Alert shows ‘myPanel’.
getItemByLabel returns NULL.
BUT: if I directly use d.getItemByLabel(“myPanel”), the panel is found.
Is this a bug?
]]>Low priority (for me anyway) app drawer style bug: backup file is at:
https://www.dropbox.com/s/e6jrnqflgy0mchq/weird
I am curious if anyone else has seen anything like this.


D5 Creation