AutoInput Click Send in Hangout doens't work

Discussion in 'AutoApps' started by amans, Jan 12, 2017.

  1. amans

    amans New Member

    Joined:
    Jan 12, 2017
    Messages:
    2
    Likes Received:
    0
    Hi guys,
    I'm going crazy with one simple thing.
    I created a task to automate hangouts reply (as we can see in many tuto) but the last action doesn't work.
    I paste in the text field then it should click on the send button in hangout via autoinput.
    I tried with the Easy Setup (Send Message or coordinates), I tried by filling the coordinates manually and nothing work.
    It works on the nexus 7 (5.0.2) but not on my pixel (7.1.1)
    I don't understand why...
    Did I miss somehing ?
    Thx for your help !
    Amans
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hi there. I just tried it on my Nexus 5X with Android 7.1.1 and it worked for me.
    Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance
     
  3. amans

    amans New Member

    Joined:
    Jan 12, 2017
    Messages:
    2
    Likes Received:
    0
    Don't bother.
    I managed to do it by using %anreplyaction !
    I didn't know this one :)
    I recreated a 2nd task which is a clone of the one which was not working
    Code (Text):
    A1: AutoNotification Query [ Configuration:Persistency Type: Non-Persistent Only
    Notification Apps: Hangouts
    Use Regex: false
    Has Reply Action: false
    Get All Fields : false Timeout (Seconds):20 ]

    A2: Say [ Text:Message from %antitle. Would you like to hear it? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A3: AutoVoice Recognize [ Configuration:
    Prompt Text: Yes or No
    Voice command without headset
    Command: "all" Timeout (Seconds):120 ]

    A4: If [ %avcomm ~ no ]

    A5: Say [ Text:OK Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A6: Else If [ %avcomm ~ yes ]

    A7: Say [ Text:%antext Engine:Voice:default:default Stream:3 Pitch:5 Speed:4 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A8: Say [ Text:Reply or dismiss ? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A9: AutoVoice Recognize [ Configuration:
    Prompt Text: Reply or Dismiss
    Voice command without headset
    Command: "all"
    Replacements: replay=reply Timeout (Seconds):120 ]

    A10: If [ %avcomm ~ dismiss ]

    A11: AutoNotification Actions [ Configuration:Intercept Action ID: %antouchaction Timeout (Seconds):0 ]

    A12: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]

    A13: AutoInput Global Action [ Configuration:Action: Home Timeout (Seconds):20 ]

    A14: Say [ Text:Message has been dismissed. Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A15: Else If [ %avcomm ~ reply ]

    A16: Say [ Text:OK. What would you like to say ? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A17: AutoVoice Recognize [ Configuration:
    Voice command without headset
    Command: "all" Timeout (Seconds):120 ]

    A18: Variable Set [ Name:%reply To:%avcomm Recurse Variables:Off Do Maths:Off Append:Off ]

    A19: Say [ Text:Message to send is %reply Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A20: Say [ Text:OK, edit, or cancel? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A21: AutoVoice Recognize [ Configuration:
    Prompt Text: OK or Edit or Cancel
    Voice command without headset
    Command: "all" Timeout (Seconds):120 ]

    A22: Goto [ Type:Action Number Number:16 Label: ] If [ %avcomm ~ edit ]

    A23: If [ %avcomm ~ cancel ]

    A24: AutoNotification Actions [ Configuration:Intercept Action ID: %antouchaction Timeout (Seconds):0 ]

    A25: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]

    A26: AutoInput Global Action [ Configuration:Action: Home Timeout (Seconds):20 ]

    A27: Say [ Text:OK. Cancelled. Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A28: Else If [ %avcomm ~ ok ]

    A29: AutoNotification Actions [ Configuration:Intercept Action ID: %antouchaction Timeout (Seconds):0 ]

    A30: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]

    A31: Set Clipboard [ Text:%reply Add:Off ]

    A32: AutoInput Action [ Configuration:Type: Focus
    Action : Paste Timeout (Seconds):20 ]

    A33: AutoInput Action [ Configuration:Type: TextValue: Send message
    Action : Click Timeout (Seconds):20 ]

    A34: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]

    A35: Say [ Text:Message sent. Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

    A36: End If

    A37: End If

    A38: End If
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Great, glad to know :)
     

Share This Page