Page 1 of 1

How to shoot themselves?

Posted: 10 Apr 2014 21:54
by ZSasha
Hello,

Does anyone know how to shoot a picture using [any] camera app initiated by Automagic?

I tried to use ControlUI to emulate pressing shutter button but stock samsung app was not even detected - I mean Automagic was unable to find any "clickable" elements on the screen to "press".

I tried CameraFX app and while Automagic did see the shutter button and even picked up its coordinates - again sending "click" command to that control did not make it working.

I don't want to use builtin "take photo" action for some reasons.


Thanks.

Re: How to shoot themselves?

Posted: 11 Apr 2014 08:06
by Martin
Hi,

On a rooted phone you could simulate pressing the touchscreen location with action Execute Root Command: input tap <x> <y> (not supported by all ROMs).

When using Control UI you usually have to add a sleep-action before the UI is clicked.
This flow works on Android 4.4 with the stock camera app:
-action Launch App: com.google.android.GoogleCamera
-action Sleep: 5s
-action Control UI: click("Shutter");

Regards,
Martin