How can I create a macro that can help me press the 'SEND' button in WhatsApp

handsome_guy

New member
Hello everybody,

I am looking for a macro that can retrieve all received SMS messages and forward them to another phone using WhatsApp. The SMS message can be successfully copied to WhatsApp but cannot be sent out.

How can I create a macro that can help me press the 'SEND' button in WhatsApp so that the message can be sent out?

Thank you in advance.
 

mapriex

Active member
the easiest way is to use the UI Interaction. If InApp Interaction doesn't work, then the inactive device must run the app in foreground. With rooting the device you can check what coordinates do you need (you can disable rooting after it).
 

Endercraft

Moderator (& bug finder :D)
You don't need to root the device to obtain coordinates, there is a setting in developer options to show coordinates.
 

Dm114

Well-known member
Hello everybody,

I am looking for a macro that can retrieve all received SMS messages and forward them to another phone using WhatsApp. The SMS message can be successfully copied to WhatsApp but cannot be sent out.

How can I create a macro that can help me press the 'SEND' button in WhatsApp so that the message can be sent out?

Thank you in advance.
You can use a macro as attached to toggle (x,y) pointer location display.
20231216_163822.jpg
 

Dm114

Well-known member
Hello everybody,

I am looking for a macro that can retrieve all received SMS messages and forward them to another phone using WhatsApp. The SMS message can be successfully copied to WhatsApp but cannot be sent out.

How can I create a macro that can help me press the 'SEND' button in WhatsApp so that the message can be sent out?

Thank you in advance.
Have you tried Whatsapp Send action?
 

mapriex

Active member
You don't need to root the device to obtain coordinates, there is a setting in developer options to show coordinates.
Sorry for misstyping. I meant dev-mode with rooting. thank you for clarification.

@LpmitBenjamin
screen coordinates isn't working on newer android versions. FYI.


As I see @Dm114 and @Dimlos come with great solutions. let's wait if the problem can be solved with that. i am looking forward👍
 

MacroDroidDev

Administrator
Staff member
Showing screen co-ordinates is available in the developer settings on all versions of Android including Android 14. In Android 14 and most other modern versions (I think) it's called "Pointer location".

I'm not entirely sure why the WhatsApp send action is not being used, but MacroDroid invokes the send button using the Same UI Interaciton functionality. Specifically it attempts to click on view id "com.whatsapp:id/send" and as a backup tries X,Y location 94%,94%
 
Top