It is possible within this script?
Posted by: pierrot | on April 3, 2014
It is possible within this script?
1) If something, execute any part of the code, else make any from events and action (LL action, for example: select a wallpaper or toggle status bar or add item, etc).
2) Or is it possible
1) open some file from SD card or internal memory
2) rename some file
3) delete some file(s)
by script in LL? I mean open and play some video or music? (for example: sd card/folder 1/folder2/video.mp4)
]]>Posted in | 18 Comments »
Tags:
« I have really devil ideas for version 11 :-) (Previous Post)
(Next Post) I thought I got somewhat familiar with Extreme settings but now, after an update I have realized I can script the… »
< ![CDATA[
It would be dangerous to be able to do this.
]]>
< ![CDATA[
for example some user with Raspberry Pi (mini pc with android), monitor or TV, and LLX…
In morning start this device and LLX automatic doing after start open selected video in script and play in infinity mode. To be useful in the shop window, or an exhibition, etc.
]]>
< ![CDATA[
Danbar Danbar tasker 😉
]]>
< ![CDATA[
yes i know (tasker), But this is point 2).
What point 1)?
]]>
< ![CDATA[
Can’t you just run from script another shortcut that performs that action?
Don’t think wallpaper change is possible.
]]>
< ![CDATA[
If is possible run from shortcut, this is way how doing my theoretical conditions…
because shortcut can doing (add item…/shortcut/lightning action/ what user need (also select a wallpaper 🙂 )
]]>
< ![CDATA[
1) you’ll have to make a shortcut to the action.. From there you can use launch() LL.getCurrentDesktop().getItemByLabel(‘Select a wallpaper’).launch();
]]>
< ![CDATA[
Danbar Danbar was that what you were looking for?
]]>
< ![CDATA[
yes, that’s it.
Is possible doing something like this?
If is not on the desktop shortcut (name), add to desktop this shortcut (for example LL for action: select a wallpaper) with parameter not visible, otherwise doing bla bla.
If not, why? (all reasons)
]]>
< ![CDATA[
Lukas Morawietz , TrianguloY What do you think about my question in previous post?
]]>
< ![CDATA[
You can’t add items (yet)
There is nothing you can do, only add the shortcuts yourself and launch them. Sorry
]]>
< ![CDATA[
Pierre Hébert Can you enable add() items in script editor?
Or enable read(start/play)/rename/delete for sd card, etc. More info is in first post.
Add function for open: recent apps, open quick settings in status bar (some android have this option – maybe from 4.2.2)
]]>
< ![CDATA[
Danbar Danbar i think this should not be a launchertask.
]]>
< ![CDATA[
😉 I think the addition could serve as example for an introductory guide for setting desktop. (by script, for new users) and more.
]]>
< ![CDATA[
I plan to add a LL.runAction() method, which would give access to all (or almost all) actions available with event configuration.
Regarding adding (and deleting items), this is something that i would like to implement but it has strong implications. I need to clarify a few things first.
]]>
< ![CDATA[
and this?
Or enable read(start/play)/rename/delete for sd card, etc. More info is in first post.
Add function for open: recent apps, open quick settings in status bar (some android have this option – maybe from 4.2.2)
]]>
< ![CDATA[
File management is not really the task of the launcher, I prefer to leave it to other components at the moment.
Recent apps, etc. are (I think) not a public API. Maybe this can be done programmatically, but I am not sure.
]]>
< ![CDATA[
recent apps… some other launchers have in action for gestures this option.
]]>