Page 1 of 1

java script addon

Posted: 13 Apr 2013 21:53
by syndromtr
hello, at first thanks for new version with numerous additions.. most new features we requested are included..

i thought about a new kind of "script" addition.. a more complex script that allows javascript commands.. as i checked, other automation apps have this feature..
why i requested this: i tried stock camera app, run it and simulate "take photo" key to get instant photo, i even simulated KEYCODE_CAMERA even my phone does not have a hardware camera button.. that didn't work. after research, i noticed, only way for this is a java code.. so maybe this kind of new script addon can help..

another request for forum: in userhelp-bug request forum, "DIY-Actions: Execute Command, Execute Root Command" topic is great,
how about a new topic about start activity-broadcast topic, describing special activities-variables of stock apps, examples and their results?

regards,

Re: java script addon

Posted: 14 Apr 2013 16:53
by Martin
Hi,

sl4a might be the right tool for you. It allows to create scripts in different languages (JavaScript, Python, lua, beanshell etc.):
https://code.google.com/p/android-scripting/

You can call your own scripts from Automagic using the action Plugin and you can probably also trigger Automagic flows from scripts using broadcast intents (see trigger General Broadcast).

I'm thinking about starting more DIY-posts as soon as I find some time. Posts will probably cover General Broadcast, Start Activity and Send Broadcast.
Don't hesitate to post your own examples or variations of existing commands in the forum.

Regards,
Martin

Re: java script addon

Posted: 15 Apr 2013 20:50
by LightTempler
Thx for the note to SL4A! A great expansion to Automagic 's 'Action' part!