How to shoot themselves?

Post your questions and help other users.

Moderator: Martin

Post Reply
ZSasha
Posts: 103
Joined: 11 Oct 2013 03:48

How to shoot themselves?

Post by ZSasha » 10 Apr 2014 21:54

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.

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

Re: How to shoot themselves?

Post by Martin » 11 Apr 2014 08:06

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

Post Reply