now browsing by tag
Hi.
Hi.
I´m thinking about migrating from Tasker to DroidScript, but first I need to make sure I can send variables and execute LL scripts from DroidScript using broadcast intents. What would be the list of parameters I need to send?. For example, I’ve managed to send a variable from DroidScript to KLWP using this:
KUSTOM_ACTION = “org.kustom.action.SEND_VAR”;
KUSTOM_ACTION_EXT_NAME = “org.kustom.action.EXT_NAME”;
KUSTOM_ACTION_VAR_NAME = “org.kustom.action.VAR_NAME”;
KUSTOM_ACTION_VAR_VALUE = “org.kustom.action.VAR_VALUE”;
KUSTOM_ACTION_VAR_NAME_ARRAY = “org.kustom.action.VAR_NAME_ARRAY”;
KUSTOM_ACTION_VAR_VALUE_ARRAY = “org.kustom.action.VAR_VALUE_ARRAY”;
var extras = [
{name:KUSTOM_ACTION_EXT_NAME, type:”string”, value: “droidscript”},
{name:KUSTOM_ACTION_VAR_NAME, type:”string”, value: “ds_var”},
{name:KUSTOM_ACTION_VAR_VALUE, type:”string”, value: “test variable from droidscript”}
];
extras = JSON.stringify( extras );
app.BroadcastIntent(KUSTOM_ACTION,null,null,null,extras);
Is it possible to do something similar for Lightning Launcher?
]]>Hey.
I want to change top padding in a panel but with no success. The last thing I’ve tried:
var prop = LL.getCurrentDesktop().getItemByLabel(‘Dock’).getProperties().
edit().getBox(“i.box”).
setSize(“pt”, 20).
commit();
Don’t know if it really matters but the panel/dock is unpinned.
Thanx in advance.
]]>Hi.
I have a few questions:
1.- I have an issue with LL+KLWP. When I am in the first LL desktop the shortcuts from my KLWP wallpaper do work but not in any other desktop, even if I set them as the home. Only the first original desktop from the five I have (three of them are empty) works, even if it isn’t currently the first in the list from Settings->Lightning->Configure Desktop.
2.- Is there any way to get the number of page in a desktop?. I use global gestures for using with KLWP and I’d like to work differently depending on the page I am, so I need for that the page number.
3.- Also, not a problem but is the main reason I want to use LL, and being a beginner I don’t know how to start. I want to have a scrollable dock with different icon bitmaps depending on a Tasker context, similar of what I’ve already done (non scrollable) for the desktop with KLWP. This would need to be able to change an icon bitmap (12 icons actually) depending on a Tasker variable which links to a image file in the sd. As far as I know I don’t see how to do it, because in Bindings->Property there is nothing to change the icon itself.
Is Javascript neccessary? and if so, could you tell me how to do it?, maybe not the entire code but some key bits, like the object or method to get/set the bitmap. I have a bit of experience with JS in Tasker but I’m a noob in general.
The nearest example I’ve seen in the wiki is:
var i = LL.getCurrentDesktop().getItemByLabel(“some item”).getDefaultIcon();
LL.getEvent().getItem().setDefaultIcon(i);
I’d execute the script from Tasker (for better managing which images are loaded) 12 times, one for each icon in the dock or maybe only once with a loop within the script. The final result I think should be something like this:
var new_image = XXXXXXXX.getImage(“
LL.getCurrentDesktop().getItemByLabel(“dock_01”).setDefaultIcon(new_image);
Thx in advance.
]]>Hi.
I’m new to LL, experienced with UCCW, Zooper and Tasker but having difficulties making a simple scrollable dock with 3 pages (horiz) 4 icons each. When I add icons to the panel I end with some empty pages. Once (don’t know how) I got a 4×3 without empty pages but the icons were in the wrong order and managing priority had no effect.
How can I remove that empty pages?, also sometimes it scrolls vertically (into empty pages) even after I check for Horizontal Only in Scroll Direction.
Using LL 5.1 and my panel settings are Mode columns (fixed number), number columns (4), mode rows (fixed number), number rows (1), desktop size not checked, and Snap to pages checked. Seamless mode X & Y not checked for now, but when working well I’d like seamless for horizontal.
]]>