1. Are you ready for the Galaxy S20? Here is everything we know so far!

[TAsker] Camera Control: Zoom + Autofocus

Discussion in 'Android Apps & Games' started by ldm1417, Oct 1, 2018.

  1. ldm1417

    ldm1417 Member
    Thread Starter

    Hi there,

    Is there a way to control the Camera Zoom + AutoFocus with Tasker? How?

    Actually I need when the camera is launche, it will be launched with a zoom x4 and performs autofocus over the time (let's say each 1min).

    Is this possible?

    Thank you in advance!
     


  2. Dannydet

    Dannydet Extreme Android User

    Tasker can do a lot of things but I seriously doubt it can manage zoom and focus within the camera app
     
  3. Are zoom and autofocus controlled by tapping something in the app display?

    You can use shell input x y to simulate a screen tap in Tasker.

    You must be rooted.

    If you run it on a device with a different screen size the x y coordinates will be different and it will not work.

    There is probably a plugin (autoinput?) that will do it unrooted.

    … Thom
     
    ldm1417 and Dannydet like this.
  4. ldm1417

    ldm1417 Member
    Thread Starter

    "Are zoom and autofocus controlled by tapping something in the app display?" - yes. when the cam is in foreground and you tap the display the autofocus is performed to the touched pont. good catch! but how can I do this practically (I guess it should be performed with AutoInput plugin)?

    "You can use shell input x y to simulate a screen tap in Tasker" - OK, I'll try ... I thought Ineed to use AutoInput plugin ....

    "You must be rooted" - rooted :)

    "If you run it on a device with a different screen size the x y coordinates will be different and it will not work" - how can I know the (X,Y) coordinates of the middle of the display?

    "There is probably a plugin (autoinput?) that will do it unrooted" - how should I exactly do this?

    As for the zoom, it's two fingers gesture... exectly like a "zoom in" gesture ... Could this gesture be performed with Tasker?

    BTW, zoom function might be also performed with Volume Down and Volume Up buttons... Is there a way to simulate the buttons are been pressed?

    Thank you!
     
  5. I don't know of a way to do that with Tasker.

    Perhaps there is a plug-in that supports it. I would think that is unlikely.

    Perhaps there is another camera app you could use that controls it in a different way.

    … Thom
     
    ldm1417 likes this.
  6. ldm1417

    ldm1417 Member
    Thread Starter

    Cannot Tasker simulate pressing the Hard Buttons (Volume Up, Volume Down, Home, Menu)?
     
  7. ldm1417

    ldm1417 Member
    Thread Starter

    How to know the coordinates (X,Y) of the middle of the screen for the shell input command?
     
  8. X,Y values on my Moto Z Force …
    Settings/Developer Options On
    Input/Pointer Location On
    X and Y are displayed at top of screen

    go to screen you want to find out about
    Position pointer
    Write down X and Y coordinates

    Return to Developer Options
    Pointer Location Off

    The location of the Developer Options varies from device to device … you have to search for it.

    … Thom
     
    #8 Thom, Oct 1, 2018
    Last edited: Oct 2, 2018
    ldm1417 likes this.
  9. ldm1417

    ldm1417 Member
    Thread Starter

    Thanks! Worked for me :)
     

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...

Share This Page

Loading...