java script addon

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
syndromtr
Posts: 31
Joined: 01 Feb 2013 13:28

java script addon

Post by syndromtr » 13 Apr 2013 21:53

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,

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: java script addon

Post by Martin » 14 Apr 2013 16:53

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

LightTempler
Posts: 53
Joined: 17 Mar 2013 16:08

Re: java script addon

Post by LightTempler » 15 Apr 2013 20:50

Thx for the note to SL4A! A great expansion to Automagic 's 'Action' part!

Locked