AutoInput Interact with Telegram using AutoInput

Discussion in 'AutoApps' started by Adlx, Mar 4, 2015.

  1. Adlx

    Adlx New Member

    Joined:
    Feb 25, 2015
    Messages:
    11
    Likes Received:
    0
    Hi,

    Been trying to use AutoInput with Telegram (or Telegram with AutoInput), but only thing that I ever get from the Easy setup is a "Point(x,y)" object... I never get the Id or Text of the list item/field/button.

    Is it not supported for some misterious (to me) reason?

    BTW, Telegram source is there https://github.com/DrKLO/Telegram. Is there a simple way to make it compatible (like chaning a flag?). If so, I'd rebuild it and use that one (or send a pull request).
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You need to give clickable objects distinct ids. Then Id will show up. Or set accessibility text on those elements so Text will show up. :)
     
  3. LordDewi

    LordDewi New Member

    Joined:
    Mar 8, 2015
    Messages:
    1
    Likes Received:
    0
    I'm having a similar problem with an app I'm trying to use AutoInput with, HanDBase. It's a Database app and I'm trying to put GPS data into a field. But when I use the Variable Setup option when I add a UI Query item to a task I only see the View/Screen name and some default buttons as options to select for Variable Setup. So I can't be sure if comparing text for that screen will work or not. With HanDBase I'm pretty sure the View is built dynamically, because it's a configurable database and users could add, edit or delete fields at any time. So the View structure can't be stored in the layout.xml file of the program. Additionally the clickable objects could be in a different place, depending on the structure of the database or the specific database I'm in.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    @LordDewi the problem is not that it's not defined in the layout.xml file. A screen can be dynamically built and still be clickable :) For example, my projects tab in the "AutoApps" app is dynamically built and everything's still clickable.
     
  5. nkra

    nkra New Member

    Joined:
    Jan 18, 2018
    Messages:
    4
    Likes Received:
    0
    Apologies for the thread necro.
    I'm currently trying to use AutoInput to send messages in Telegram, but while I think I can get it to register clicks, I can't seem to get it to input text. Is there a way to get around this problem with the xml when using AutoInput with Telegram?
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Did you try using the "Focus" option in the AutoInput action?
     
    nkra likes this.
  7. nkra

    nkra New Member

    Joined:
    Jan 18, 2018
    Messages:
    4
    Likes Received:
    0
    Yes, I've been using the Focus option. I've gotten it to work 2 times so far, but that was out of around 10 tests. I'm unsure of what is causing it to fail most of the time. My current Tasker task is effectively:
    1. Open the App to the wanted contact
    2. Click on where the input bar should be (to focus it)
    3. Write text on the focused element (hopefully the input?)
    4. Click on where the send button should be

    Those 2 times I got autoinput to write into the input, but I have yet to actually get the message sent, as I had not added the "push send button" action yet. After adding the send action I could not reproduce the writing.
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Maybe try to add some delays? AutoInput may be clicking too fast for the app to handle :)
     
    nkra likes this.
  9. virtual

    virtual New Member

    Joined:
    Jul 8, 2018
    Messages:
    19
    Likes Received:
    0
    Hi, can you share how you did the push action in Telegram? I'm able to type the text correcly with the write action but I'm unable to tap on the push button. It doesn't have an ID so I have to use the coordinates (which I also checked using the "show cursor position" in the Android Development settings) but still ti doesn't tap...
    Just to be sure I've added a wait action of 2 seconds before the push, but it doesn't solve.

    EDIT: I also tried to tap the "smiley" icon on the left and it's not clickable too. So, apart from the textbox, AutoInput discovers the PointX-Y during EasySetup but apparently is not able to tap on them.
     
    Last edited: Jul 8, 2018

Share This Page