April, 2014
now browsing by month
m is not defined
m is not defined
I’ve got a feedback which is about my Windwos 7 LLx template.
When user press START button in the bottom-right(see pic.) which is a LL folder in panel(statubs bar), sometimes that button was not responding and show error message, “m is not defined…”
Wierd thing is that in my script(z.alogblog…statButton)’s Line 2 and whole lines, there is no “m” object.
Probably “m” is LL’s inner Java or Javascipt object? If so, why did that problem rise?
]]>hey guys, i am pretty new to scripting and want to know if it is possible to use http://jsbin.com/ for…
Question to scripters:
I want to set the position of a desktop with animation (‘true’) and then I want to do some other things.
The problem is that setPosition(x,y,s,true) is processed separately, I mean, the rest of the script is immediately run after, while the desktop is scrolling.
What I’m doing now is to launch the rest of the code with a timeout after some millisecond, but I was looking for a ‘more exact’ way.
Do you know any? Do you think the API will need to have a dedicated function?
]]>API suggestion:
Now I’m playing with items and zoom. I realized that take the ‘bounding box’ of an item is easy with the getPosition and the getHeight/Width…but:
If the scale is different you need to multiply by it.
If the rotation is different you need to do some trigonometric operations.
If the skew is different…
So my suggestion is, since the launcher already know the values (in edit mode you can see the box)
What about:
Rect item.getBoundingBox()
Like the container, but with items.
]]>Pierre Hébert the table of known feature requests isn’t up to date at all.
Is it not used anymore?
]]>Remember the first one, from a week ago? Here’s my LLX version.
The menu-item s animation is still under construction.
/* ReSide Menu item click */
var itemP = LL.getEvent().getItem().getTag();
var desk = LL.getCurrentDesktop();
var pos = 2 * itemP * desk.getHeight();
var RSM = desk.getItemByLabel(“RSM”);
var Mps = RSM.getContainer().getItems();
var n = Mps.getLength();
function pausecomp(ms) {ms += new Date().getTime();while (new Date() < ms){}};
for(var i=0;i if (Mps.getAt(i).getType() == “Panel”) { Mps.getAt(i).getContainer().setPosition(0,0,1, true); pausecomp(23); } } RSM.getContainer().setPosition(0,0,1, true); desk.setPosition(0,pos, 1, false);

No Wallpaper
I usually use a solid black wallpaper and I always used the “No Wallpaper” option instead of having a solid black jpg on my device, but now this options gone 🙁 I’m sure there was a reason for it but looking at the changelog I don’t see it mentioned.
]]>simple problem (i hope)
i have a desktop > named/labeled myDesktop
on the Desktop is a Panel > named/labeled myPanel
in the panel is a shortcurt > named/labeles myShortcut
i want to change some properties of this Shortcut.
i do not want to work with hard coded IDs from panels and shortcuts,
because i don’t know whether they keep them.
one (i made a lot of) example for what i’ve tried before
var desk=LL.getDesktopbByName(‘myDesktop’);
var panel=desk.getItemByLabel(‘myPanel’);
/*
panel is now an Item not a Container
try to find the ContainerId
*/
var pcon=LL.getContainerById(panel);
/*
so far it works
trying now to find the Shortcut
*/
var shortcurt=pcon.getItemByLabel(‘myShortcut’);
/*
failed
Cannot find function getItemByLabel in object # (where # is a Id)
*/
some ideas?
]]>With transparent navbar in landscape
With transparent navbar in landscape
In portrait mode, there is no problem.
In landscape, real navbar is located in right side, but LL doesnt know it.
]]>
D5 Creation