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

Need Tasker Help

Discussion in 'Android Apps & Games' started by Olde, Mar 2, 2016.

  1. Olde

    Olde Lurker
    Thread Starter

    Hello Tasker Friends,

    I want to create a new task which can press a button in a app - waits until an error shows up - clicks on ok to close this error and press the first button again.

    would be very nice if you can help me with this. i'm new to tasker and it's my first week with android :)

    thanks in advance :)
     


  2. sumotori

    sumotori Member

    It sounds a bit early after just a week, but maybe you pick up fast. ;)

    Lets see, first of all, are you a SuperUser on your device? i.e. have root access?
    [UPDATE: See Thom's post below for better description of input command]
    If yes, you could run a shell script with the command "input tap X Y" where X and Y the co-ordinates of your button.
    See the co-ordinates by enabling developer options and there is an option to show touch events.

    Otherwise, the application AutoInput should do the job. It's easier to work with for a begginer and doesn't require root AFAIK.
     
    #2 sumotori, Mar 2, 2016
    Last edited: Mar 2, 2016
  3. Olde

    Olde Lurker
    Thread Starter

    Hello Sumotori thank you for your answer! No i don't have root access till now. I bough AutoInput already and it works very fine for pressing this button. The problem is that i created a wait variable for 21 minutes but the error message doesn't pop up after exactly 21 minutes. I want Tasker to check when the error message pop up and click it and start the next step

    i attached a pic of what i did till now.. sorry, real screenshot was not possible because the pad is connected to the camera over wifi. I need this task for bypassing a camera recording limit

    IMG_2177.JPG
     
  4. sumotori

    sumotori Member

    Programming-wise I'd suggest a different approach, where instead of waiting 21 minutes, you wait until the message pops-up, i.e. "Wait Until %Error_Message ~ True". To do this, as you said, you need Tasker to know when the error pos-up and set the variable "%Error_Message" to true, where by default is false.

    What type of pop-up message is that? Does it also go with a notification?

    I am not very familiar with notification/toast interception. Some apps exist such as AutoNotification and Notification Listener. The second can be used for the part you want for free I think. (Make sure they work for what you want before purchasing any)

    Random comment, I prefer to split tasks to smaller sections, and then use variables and profiles to trigger them, as opposed to a single task for all actions.
     
  5. Welcome to Android Forums.

    (Overtaken by events while recording this.)

    It can be done with Tasker if your phone is root-ed. I don't know a way to do it if it is un-root-ed.

    Developer Options is a feature that is hidden when you get the phone.
    It is made visible in different ways on different phones.
    On my Droid Turbo 2 it is made visible by going to Settings/About Phone and tapping the Build Number seven times.
    Developer options is then present at Options/Developer options.

    Turn on Developer Option to show pointer location
    Display the screen with the button of interest and position over the button.
    Write down the screen coordinates ... like x=1100 y=440
    Turn off Developer option een coordinates.
    Turn off Developer Option to show pointer location

    In Tasker when the condition is recognized that the page of interest is being displayed
    You then use the Tasker action
    Code/Run shell with the command ...
    input tap 1100 440
    ... and specify root

    There is a video showing this at ...
    http://www.pocketables.com/2013/07/how-to-emulate-touch-input-using-tasker-and-root.html

    ... Thom
     
    sumotori likes this.
  6. sumotori

    sumotori Member

    AutoInput can perform the "input tap " etc etc without need for root. Since he has already bought it, he doesn't need to concern himself with developer options and root to run shell commands.

    All he needs now is to listen for the error event in some way, which shouldn't require root.

    But to utilise Tasker's full potential, root is the way for sure! ;)
     
  7. It would be a challenging first project in Tasker (if you were root-ed).

    I am on an un-root-ed Droid Turbo 2. The Developer options can be useful even if you are not root-ed.

    (There have been about three discussions recently on how to do this in Tasker and that is the reason for posting it. My recommendation for learning Tasker is to start out small, nibble away at adding capabilities.)

    ... Thom
     
    sumotori likes this.
  8. Olde

    Olde Lurker
    Thread Starter

    Thank You Very Much Sumotori, Thanks to Tom too for the more skilled way :)

    The Problem is, that the error is not connected with a notification. It's a Error in this Panasonic App, which says something like "Wifi Connection" interrupted or "Recording Time Limit reached" or maybe "SD Card Full" and there is a Ok button under it

    Do you think that tasker can "listen" or check the middle of the screen till this pop up with the ok button shows up?

    here you see a picture how the app looks and the error of panasonic pops up in the middle.

    I just found out that it's possible to get the XY Position with the Easy Step Function of Auto Input so i know how to locate the Ok button. But i just need help to set up the parameters, so tasker waits till this field is "ready to touch"
     

    Attached Files:

  9. sumotori

    sumotori Member

    Can you post a picture when the error message has popped up?

    I am thinking that you can create a profile that monitors for this Pop Up, similar to Taskers State > UI > Notification/New Window.
    So if you can specify the Window label and type, this could be your trigger?

    You also have AutoInput checking if an element is present via UI query?
     
    #9 sumotori, Mar 2, 2016
    Last edited: Mar 2, 2016
  10. Samuel Jonas

    Samuel Jonas Lurker

    Sir, I need assistance for Tasker Split function. I am struggling to get data. How do I get data between two splits. For below I need to get : Colored ones as result. This is inside file with lots of records.

    <td>Udveg</td><td>05:30</td><td>07:12</td>

    I did was after reading file :
    1st Split = %splitname SPLITTER <td>
    2nd Split = %splitname2 SPLITTER </td>
    Flash = %splitname21

    In result I get Udveg</td> and NOT Ugveg

    Please assist..Tnx
     
  11. Something like the following perhaps?

    DevC (18)
    A1: Variable Set [ Name:%test To:<td>One</td><td>Two</td><td>Three</td> Recurse Variables:Off Do Maths:Off Append:Off ]
    A2: Variable Split [ Name:%test Splitter:</td> Delete Base:Off ]
    A3: Variable Split [ Name:%test1 Splitter:<td> Delete Base:Off ]
    A4: Variable Split [ Name:%test2 Splitter:<td> Delete Base:Off ]
    A5: Variable Split [ Name:%test3 Splitter:<td> Delete Base:Off ]
    A6: Flash [ Text:%test12
    %test22
    %test32 Long:On ]


    I played with it further and what you posted should do what yo want. My conclusion is that you are not actually running what you posted. Your second Split is apparently not what you posted. A space in the splitter field perhaps.


    ... Thom
     
    #11 Thom, May 14, 2017
    Last edited: May 14, 2017
    Samuel Jonas likes this.
  12. Samuel Jonas

    Samuel Jonas Lurker

    at the outset i thank u&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as the method you gave i was able to get what i wanted.&amp;nbsp; Sir you are correct as all data is from&amp;nbsp; get http and saved into file.&amp;nbsp; i just copied small portion and did it.&amp;nbsp; everything&amp;nbsp; works fine except tasker getting too lengthy. Will surely workout for new ideas.&amp;nbsp; thanks
     
    buathonghadchaiyapom likes this.

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...