How to Send Text inside a WhatsApp Conversation

383 views
Skip to first unread message

Zohar

unread,
Apr 1, 2017, 9:37:21 AM4/1/17
to Tasker
Hi


Imagine this scenario:

The WhatsApp application is open, and is inside a chat window of a specific friend.
So you see the messages you wrote to him, and he wrote to you,
and you have a TextBox on the bottom, so you can write.

Now, I want tasker to do a small thing, in this situation:
To send a small premade message to the TextBox,
yet not perform the "Send" operation - meaning not to Tap the "Send" button.


How can I do this?
(I hope it can be done)


Thank you

Rich D

unread,
Apr 1, 2017, 10:30:59 AM4/1/17
to Tasker Google Groups Post



Now, I want tasker to do a small thing, in this situation:
To send a small premade message to the TextBox,
yet not perform the "Send" operation - meaning not to Tap the "Send" button.


How can I do this?
(I hope it can be done)


I do not use WhatsApp so I might be missing something. Could you do this with by setting the clipboard with Tasker then pasting it in the text box ?

Zohar

unread,
Apr 1, 2017, 11:06:29 AM4/1/17
to Tasker
I do not use WhatsApp so I might be missing something. Could you do this with by setting the clipboard with Tasker then pasting it in the text box ?

Thank you,
I am already doing it like that.. with the  Set Clipboard action,
and then manually pasting it, via long tapping the textbox, and tapping the "Paste" button that floats there (from android).

I am looking to automate that part..

Rich D

unread,
Apr 1, 2017, 11:30:36 AM4/1/17
to Tasker Google Groups Post


Thank you,
I am already doing it like that.. with the  Set Clipboard action,
and then manually pasting it, via long tapping the textbox, and tapping the "Paste" button that floats there (from android).

I am looking to automate that part..

What would you want to use as a trigger?

Zohar

unread,
Apr 1, 2017, 11:35:16 AM4/1/17
to Tasker
What would you want to use as a trigger?
I currently use a floating button.
But the trigger is not the issue here, there is no dificulty there..
Let's focus on achieving sending the text to WhatsApp..

Rich D

unread,
Apr 1, 2017, 11:45:19 AM4/1/17
to Tasker Google Groups Post



Let's focus on achieving sending the text to WhatsApp..

OK, hopefully a WhatsApp user will have a answer, however I do not think it will be possible to send the text through the app. I would think your best bet would be a Paste operation. The plug in autoinput has a paste feature. 

Zohar

unread,
Apr 1, 2017, 11:56:12 AM4/1/17
to Tasker


On Saturday, April 1, 2017 at 5:45:19 PM UTC+2, Rich D wrote:



Let's focus on achieving sending the text to WhatsApp..

OK, hopefully a WhatsApp user will have a answer, however I do not think it will be possible to send the text through the app. I would think your best bet would be a Paste operation. The plug in autoinput has a paste feature. 
Thank you very much for the reference to AutoInput.
I thought about it before creating the thread here,
but myu phone is Android v.4.2,
and AutoInput requires Android v4.3 or above, due to new API being introduced only in v4.3..

So I guess this means I cannot achieve what I wanted in this thread till I replace my phone......

Rich D

unread,
Apr 1, 2017, 12:32:39 PM4/1/17
to Tasker Google Groups Post

I thought about it before creating the thread here,
but myu phone is Android v.4.2,
and AutoInput requires Android v4.3 or above, due to new API being introduced only in v4.3..

So I guess this means I cannot achieve what I wanted in this thread till I replace my phone......


Without root or Android v4.3 or above your options are very limited. 

Zohar

unread,
Apr 1, 2017, 12:44:32 PM4/1/17
to Tasker
Without root or Android v4.3 or above your options are very limited.
I understand..

OK so I will wait till I replace my phone..
(saving a link to current thread, for the day that will come)


Thank you Rich D

Abdullah Alahdal

unread,
Apr 1, 2017, 3:43:14 PM4/1/17
to Tasker
You can do this using AutoInput without root

I think there is another app called TouchTask

Zohar

unread,
Apr 2, 2017, 7:24:57 AM4/2/17
to Tasker
Hi



You can do this using AutoInput without root
Yes we mentioned AutoInput,
but as I wrote, AutoInput requires Android v4.3 and above, and I have v4.2..



I think there is another app called TouchTask

 Right,
yet, it too requires Android v4.3 and above
(it uses the same API that AutoInput uses, and that was introduced only in Android v4.3..)

korni

unread,
Apr 2, 2017, 2:38:41 PM4/2/17
to Tasker
When you open a conversation in WhatsApp, the focus is on that text box you are referring.

What you need in your task is the Type action, which you can find under Input (i.e. press + -> Input -> Type)
In there you can have your message (or variable).

The only downside is that for long texts it is a bit slow. Other than that, it works like a charm. Just tested on WhatsApp ;) 

Rich D

unread,
Apr 2, 2017, 3:06:18 PM4/2/17
to Tasker Google Groups Post


> What you need in your task is the Type action

That action requires root..

korni

unread,
Apr 2, 2017, 3:33:59 PM4/2/17
to Tasker
Oh, my bad! :( Thanks for the info.

Zohar

unread,
Apr 3, 2017, 2:37:06 AM4/3/17
to Tasker
thank you for the idea..
But as Rich D said, it requires root - it appears in re with an X on my phone..

So I will wait for a newer phone when I buy a new one..

korni

unread,
Apr 4, 2017, 3:51:14 AM4/4/17
to Tasker
Another option is to use intents when you fire your task.

With the following, you would have to choose a contact through the contact picker in WhatsApp.

Action:android.intent.action.SEND 
Cat:None 
Mime Type:text/* 
Data: 
Extra:android.intent.extra.TEXT:Your text goes here
Extra: 
Extra: 
Package:com.whatsapp 
Class: 
Target:Activity

I've tried to see if this can be modified to actually include the contact, but haven't succeeded.
That being said, I am not very familiar with intents.

Zohar

unread,
Apr 4, 2017, 3:49:01 PM4/4/17
to Tasker
Hi korni


Thank you for your idea.

Actually what I want to do, is defined by the fact that I am already in a chat screen with a specific person in WhatsApp..
So assume WhatsApp is open, and in a chat with a person now..

Did that intent work for you in that case?
Reply all
Reply to author
Forward
0 new messages