July, 2014
now browsing by month
This is a Video regarding my “Problem” which i have posted here:
This is a Video regarding my “Problem” which i have posted here:
https://plus.google.com/u/0/+gerdreuter/posts/P7xvtFYYn5T
First part with Script from above.
Second part Script with jsut this:
if (pos>-1) {
trans=255;
itm. getProperties(). edit(). setInteger(‘i.alpha’,trans). commit() ;
}
Additional info:
by reaching stop-point i chnage the tranparency to 0 of this panel.
and by resuming desktopn i set it to 255.
]]>V10.4b4
On installation of the beta, all my 9 patch files disappeared. Tried everything including re-applying them. Still no luck. Can anyone confirm or deny? Thanks.
]]>dev Tool: autoformat scripts
Autoindent and remove unnessecary spaces, line breaks and tabs
May produce bugs! (can’t test everything.) Use with care.
http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_autoformat
]]>Is “i.alpha” is somewhat over-optimized?
I know properties set are not persisted immediately (thanks for LL.save() BTW!!), but if I ONLY change “i.alpha”, the current value cannot be queried without restarting LL.
To reproduce:
Add shortcut “run script”, use script below. It should toggle the shortcuts transparency… but it doesn’t. It does not work until any of the other “editor.set…” functions are added. Also “LL.save()” does not help here. And if you open “Item >> Customize” it also does not show the changed transparency value.
var item=LL.getEvent().getItem();
var props=item.getProperties();
var oldalpha=props.getInteger(“i.alpha”);
var newalpha=oldalpha<255?255:64;
var editor=props.edit();
editor.setInteger(“i.alpha”,newalpha);
//editor.setBoolean(“i.onGrid”,true);
//editor.setBoolean(“i.enabled”,true);
editor.commit();
//LL.save();
]]>Having a lot of bugs ATM, I’m trying a lot…
Having a lot of bugs ATM, I’m trying a lot…
Anyway, a prompt is not displayed correctly, but under the navbar, if bigger than screen.
(don’t look at the code, it’s some crap I use at my desktop)
]]>This small script try to reproduce the dynamic icon (calendar) of nova launcher.
It will just set the custom icon of the defined item depending on the month. However it’s extremely easy to modify and perhaps it gives you ideas to another different script.
Instructions:
>Set it in the resume event of the container which has that item.
>Write the package name of the icon pack. This is not obvious and looks like com.pack.icons, you will need another app to know it. ( Pierre Hébert: will it be possible to show it in the new icon picker when long clicking the name of the icon pack? )
>Write the prefix of the 31 items containing all the different months. By default it is ‘ic_calendar_’ but it can change depending on the icon pack. Search items labeled prefix1 prefix2 prefix3 …
>Set the label of the item to identify it.
If you have another script in the resumed event you can copy this at the beginning without problem (or set it in the load event…it will only act once a month after all)
]]>Fast run tool V2
I’ve been improving my fast run tool script adding new functions and awesome features, now it’s time to publish it.
I also updated all my scripts in the wiki with the new syntax tag to be able to copy them better (if there is a problem tell me)
New features described in the page but the most important is the ability to use alerts/prompts/all! Thanks to Pierre Hébert , you showed me how to make it with your example of Script.getText() 😉 Thanks!
]]>Hi All
Quick Question 😉
I have a Screen with vertical Scroll.
i need a trigger/event when reaching specific positions on desktop without interrupting/stop scrolling.
event position changed triggers to often.
any ideas? or not possible?
Thanks in advance 😉
]]>Editing properties of items inside panels/folders through scripts seems broken in 10.4b3. Especially “i.alpha”.
Seems to work for items on desktop (tried fading effect here, works), but changing alpha or I think font style does not work. Changes only show after “Restart LL”-action.
This and “unknown” for getType()… seems the build is pretty broken. Will try to revert to 10.4b2.
]]>