AutoInput Detect when action is complete?

Discussion in 'AutoApps' started by TonyG, Nov 6, 2018.

  1. TonyG

    TonyG New Member

    Joined:
    Sep 27, 2016
    Messages:
    10
    Likes Received:
    0
    I've noticed that a Tasker task will execute an action and then move on to the next action before the prior action is complete. When AutoInput is in the process of executing through a sequence, this can lead to actions stepping on one another. The typical remedy is to add a Wait for some short period of time that we expect for the prior action to complete. But on various conditions like battery saver mode or other background activity, that time can vary. So we need to err on the side of caution and set a Wait for the longest period of time that we think it will take for some action to complete - and when the device is running well this means unnecessary delays.

    An obvious solution is to check some system state to see if the prior action completed what it intended to do, but the UI could still be a state of navigation after the system has changed state. There might not be a state change that we can check.

    Rather than that haphazard approach, is there some flag in AutoInput that will indicate if another AutoInput action is still in progress? Or might there be a Tasker flag that forces synchronous operations on a task or action?

    Thanks!
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    As long as the timeout is set to something like 10 seconds AutoInput and Tasker always wait until the action is complete to move on to the next one.
     

Share This Page