Exit App 1.0

Back out of an app

  1. joaomgcd
    This task will back out of the currently running app.

    Very useful in situations where you open an app, automate it with AutoInput and want to back out of it when you're finished so you end up where you started.

    It will check the current app then press back as long as the current app is still the same.

    Here is the Task description (you can also download the task's xml so you can directly import it):

    Exit App (419)
    A1: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
    A2: AutoInput UI Query [ Configuration: Package:com.joaomgcd.autoinput Name:AutoInput UI Query Timeout (Seconds):20 ]
    A3: Variable Set [ Name:%apptoexit To:%aiapp Do Maths:Off Append:Off ]
    <Go back>
    A4: AutoInput Global Action [ Configuration:Action: Back Package:com.joaomgcd.autoinput Name:AutoInput Global Action Timeout (Seconds):20 ]
    A5: Flash [ Text:Exiting %apptoexit Long:Off ]
    A6: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
    A7: AutoInput UI Query [ Configuration: Package:com.joaomgcd.autoinput Name:AutoInput UI Query Timeout (Seconds):20 ]
    A8: If [ %aiapp eq %apptoexit ]
    A9: Goto [ Type:Action Label Number:1 Label:Go back ]
    A10: Else
    A11: Flash [ Text:Exited %apptoexit Long:Off ]
    A12: End If

Recent Reviews

  1. NateG
    NateG
    5/5,
    Version: 1.0
    Best exit task I have seen so far. Thanks
  2. REINALDO CARDOSO
    REINALDO CARDOSO
    5/5,
    Version: 1.0
    Porque e muito bom o progeto muito útil no dia dia
  3. Boyi
    Boyi
    5/5,
    Version: 1.0
    Serve the purpose
  4. 07UA599A
    07UA599A
    5/5,
    Version: 1.0
    Awesome bit of code, Thanks!
  5. Gürhan KARTAL
    Gürhan KARTAL
    5/5,
    Version: 1.0
    perfect, saved me a lot of time
  6. McCoy
    McCoy
    5/5,
    Version: 1.0
    Thanks! It works perfectly for me. You've provided us with an ellegant way of ending many tasks.
  7. puredp
    puredp
    5/5,
    Version: 1.0
    Great task thanx a lot!!
  8. rowman
    rowman
    5/5,
    Version: 1.0
    thanks, great task
  9. Yamero
    Yamero
    5/5,
    Version: 1.0
    Great task, saved me from counting the back button.
  10. Insanity
    Insanity
    5/5,
    Version: 1.0
    Extremely useful, much better than having to manually figure out how many times to have AutoInput hit the back button. Plus it can easily be used by any Task, without having to tweak it any for specific use cases.