January, 2016

now browsing by month

 

setPosition exception right after desktop onloading

setPosition exception right after desktop onloading

// script set to onLoad event of desktop.

//setTimeout(function() {

  var dt = LL.getCurrentDesktop();

  dt.setPosition(0, 0, 1, false); // go to home position with no animation, scale 100%.

//},5000);

Android.makeNewToast(‘Moved to home.’, true).show();

I know that on loading of desktop, its position moves to home automatically. So generally speaking we dont have to call it manually.

Anyway, apart from that, above script has no problem at all theoretically.

But if I make LL restart, then LL emits error popup saying

“Wrapped java.lang.NullPointerException” ( at setPositin line)

Of course, dt is not null at all.

So I delayed execution by setTimeout, but in no vain.

]]>

Hello guys.

Hello guys. I have very simple(I hope) problem. I recently started self learning JavaScript. I’m trying to write a simple script for my phone launcher (lightning).

I have a main folder and subfolders within it on my desktop. I’m trying to get my script to close other subfolders that are open when I press a subfolder but not close the main folder. This is what I have so far –

var fr = LL.getEvent().getContainer(); var sib = fr.getItemByLabel(“sb”); var f=LL.getOpenFolders(),fll=f.getLength(); if(fll>0) for(var i=0;i

sb is the name of my main folder, I don’t know how to define the current folder I am pressing or remove them both from the last function.

Thanks

onLoad event of desktop is being called twice at restarting LL

onLoad event of desktop is being called twice at restarting LL

I set the desktop’s onLoad event handler to “Run Script”.

And that script has one line like “Android.makeNewToast(Date.now() + ” onLoad…”, true).show();

If I restart LL, then two toast messages are show with different date value.

Because it’s too weird, I tested it in newly installed LL in a virtual machine. However the same result was happened with successive two toast. That means onLoad was called twice at restarting LL.

Its bug? or my bad luck?

]]>

Here is a challenge: Who already has or is working on the best looking/practical theme/setup/build/rig (insert your…

Here is a challenge: Who already has or is working on the best looking/practical theme/setup/build/rig (insert your word here) for LL but ONLY using LL?

No 3rd party widgets or tasker. Just straight up, raw LL.

You can use scripts and custom views and anything that it is intrinsic to LL such as special permissions and the like!

Post Below!

]]>

again and again problems with bindings.

again and again problems with bindings.

always when i use items with bindings inside a panel i have trouble with them. after a while (hours, minutes or seconds) the bindings stop working. 

it’s frustrating and drives me crazy.

i do this disable/enable bindings  and disable/enable “use hardware acc…” a hundred times for the items and the panels too. 

it is more worse than before the last update. 

please, please, please Pierre Hébert fix this.

]]>

All script, all Lightning.

All script, all Lightning.

Game on, Lightning.Kiddo​ aka Jappie Toutenhoofd​

Originally shared by Lightning.Kiddo

DeLuXe-template overview.

[Card effect by Lutz Linke​]

]]>

This morning, while I was “playing” with scripts, I saw two new methods suggested – setFrameCount() &…

This morning, while I was “playing” with scripts, I saw two new methods suggested – setFrameCount() & setFrameDuration() -.

I searched them in the script API but I can’t find them.

Anyone can tell me more about?

]]>

I am interested in getting a launcher to use on my phone for use in the car.

I am interested in getting a launcher to use on my phone for use in the car. Ideally I would like large tile like icons, ie. Windows 10, etc. CanI do this in lighting? Anyone have any examples?

On every swipe gesture LL move wallpaper.

On every swipe gesture LL move wallpaper.

Check box in desktop settings does not work.

!Same setting works on Nova Launcher (but need reset after android restart)

– workaround to install Nova is not good, and issue back on restart.

Is it possible to fix LL setting?

previous discussion:

https://plus.google.com/113157980543803349502/posts/Xv5ZM4Azdpc

]]>

A script with only three characters that crashes lightning:

A script with only three characters that crashes lightning:

/{/

It seems that regexp Pattern exceptions are not caught, and directly crashes lightning (the app log outputs the error)

But a more strange thing is that, if you create a shortcut to launch this script nothing happens(nor even in the log), but if you run it from an item/container/customMenu then it crash.

]]>