sending message when i open app

FrameXX

Well-known member
MacroDroid can't directly just send whatsapp message. You need imitate user by UI interaction which is clunky and unreliable way to send a message, or you can use MacroDroid with Notification Listener plugin to respond to whatsapp messages throught notification. (If someone sends you a message, you got notification and MacroDroid is able to reply with text throught that notification). Sorry, but these are just limitations of android and real world.
 

ghadi

New member
MacroDroid can't directly just send whatsapp message. You need imitate user by UI interaction which is clunky and unreliable way to send a message, or you can use MacroDroid with Notification Listener plugin to respond to whatsapp messages throught notification. (If someone sends you a message, you got notification and MacroDroid is able to reply with text throught that notification). Sorry, but these are just limitations of android and real world.
okay thank you , can you help me to use the UI interaction?
 

Dm114

Well-known member
okay thank you , can you help me to use the UI interaction?
With WhatsApp it's not so complicated!

First use 'Open web site' action with this URL: https://wa.me/ international_phone_number_without_plus_sign/?text=Your_message

Then, use UI interaction to click on the 'send button'. Don't forget to put a wait action before clicking (some 500ms should be enough).
 

FrameXX

Well-known member
With WhatsApp it's not so complicated!

First use 'Open web site' action with this URL: https://wa.me/ international_phone_number_without_plus_sign/?text=Your_message

Then, use UI interaction to click on the 'send button'. Don't forget to put a wait action before clicking (some 500ms should be enough).
True, true... What Dm proposes should be more realiable and open chat directly with text already written...
 

Bassem

New member
Hi,
In UI Interaction step , when i navigate to WhatsApp and click on "send" button ,after click on macrodroid notification nothing occur.
 

Bassem

New member
What exactly are you doing ? What notification ? (There is a WhatsApp send action if you didn't know)
1- I added UI Interaction to actions
2- click on configure
3- select "Click"
4- select " Identify in app"
5-click on ok
6- i navigate to WhatsApp Business app
7- i typed a test text and clicked on "Identify UI Control" notification.
8- "now touch the UI Control" appeared
9- I touched "send" button.
10- the message was sent but nothing occur, the action doesn't recognized by macrodroid
please note it recognizes any others touch like the "voice button"
 

Bassem

New member
i use "send Intend" and "UI Interaction", because "WhatsApp send action" also doesn't auto send the text (it wrote the message successfully but doesn't send it)
 

x4rfaCe

New member
Hi,

there is already a "Send WhatsApp Message"-function. Look attached.

GreetZ
x4r
 

Attachments

  • Screenshot_20221031-105125.png
    Screenshot_20221031-105125.png
    148.9 KB · Views: 14

rodlsd

New member
Send WhatsApp Message
This option also has a problem, often the text is pasted but not sent. There is no way to know whether or not the message was sent in the automation.
It needs to have a success return as a variable, so it could repeat the process in case of failure to send.
 

yashpathack

New member
This option also has a problem, often the text is pasted but not sent. There is no way to know whether or not the message was sent in the automation.
It needs to have a success return as a variable, so it could repeat the process in case of failure to send.
How to get the event for successful send?
 
Top