now browsing by tag

 
 

The launcher got stuck when I executed a script setting the eventhandler “resumed” of the current desktop.

The launcher got stuck when I executed a script setting the eventhandler “resumed” of the current desktop. It should have been something like “x.resumed” I think, but I didn’t know which letter to put there, so i tried without. The launcher keeps crashing and I can’t use it anymore :(. Restarting my phone didn’t fix the problem. I could clear lightning launchers memory, but I haven’t backed up in a while, so if is there is a way to change the desktop it starts on or to backup without having to start the app that would be great. I have already send the but report btw.

Colin

]]>

2 suggestions:

2 suggestions:

1: Could you add an event listener available for use with scripting to containers, which fires when a new item is added to that container. May not be a lot of use without scripts, but I could definitely think of some ways it would be useful with scripting.

2: I might have missed something, but I couldn’t find a straight forward way to get to know the default width and height of items that are new on in a container. This could be very useful when scripting too.

I really appreciate your hard work on this launcher!

Colin

]]>

Hi, could you add scripting support for copying items?

Hi, could you add scripting support for copying items? This would be a lot more convenient instead of getting and assigning all the item properties to a new item.

Thanks for a great launcher!

Colin

]]>

If anyone else wants a script to automatically import modified .js files elsewhere on your device into the script…

If anyone else wants a script to automatically import modified .js files elsewhere on your device into the script editor, here is one:

var scriptFolder = “/storage/emulated/0/LightningLauncher/script”;

LL.bindClass(“java.lang.StringBuilder”)

LL.bindClass(“java.io.FileReader”)

LL.bindClass(“java.io.BufferedReader”)

LL.bindClass(“java.io.File”)

LL.bindClass(“java.text.SimpleDateFormat”)

scriptNames = []

folder = new File(scriptFolder)

files = folder.listFiles()

for(i=0;i

name = files[i].getName()

length = name.length

if(name.substring(length-3,length)==”.js”){

scriptNames[scriptNames.length] = name

}

}

for(i=0;i

var script=LL.getScriptByName(scriptNames[i].substring(0,scriptNames[i].length-3));

file = new File(scriptFolder,scriptNames[i])

lmdate = file.lastModified()

tagdate = script.getTag(“lmdate”)

if(lmdate>tagdate||typeof tagdate == “undefined”){

text = new StringBuilder();

try {

br = new BufferedReader(new FileReader(file));

var line

while ((line = br.readLine()) != null) {

text.append(line);

text.append(‘\n’);

}

br.close();

script.setText(text);

date = new Date()

script.setTag(“lmdate”,date.getTime())

}

catch (err) {

throw(err)

}

}

}

http://java.io
]]>

This may be posted on here already, but “edit” button in the script editor menu doesn’t really work.

This may be posted on here already, but “edit” button in the script editor menu doesn’t really work. Some people have it kinda working with droidedit, but it doesn’t work for me and other code editor apps don’t work either. The autocomplete is nice but other apps offer features that I’d rather have.

]]>

Hi, does somebody know a good code editor that works wel with the “edit” button in the script editor menu?

Hi, does somebody know a good code editor that works wel with the “edit” button in the script editor menu? The default script editor is OK, but there are way better alternatives.

]]>

I’m trying to get the coordinates of the center of a rotated item and to calculate them I need the width and height…

I’m trying to get the coordinates of the center of a rotated item and to calculate them I need the width and height of the box of the item, but there is no string for this in the API. Item.getWidth and getHeight don’t work because the item is rotated. Am I missing something here or is there just no way the can be done easily.

]]>