Contact Via App Hangs Phone

vik77

New member
Hi, I want to build a macro to automate sending messages in whatsapp business app.
The moment I click on a contact after selecting "Contact via App", it hangs/freezes.

Any workaround?
 

Endercraft

Moderator (& bug finder :D)
Your problem seems to be related to WhatsApp itself. This isn't really a MacroDroid problem. You can try using UI Interaction instead to contact (by trial and error if necessary).
 

vik77

New member
Hi, I used a different method - I used the direct chat link to open the whatsapp chat. Now the next challenge is to paste a simple text message and send it.

- Macrodriod widget button clicked
- Whatsapp chat opened
- Next?

Any help?
 

hsurB

Well-known member
Ui interactions to click space where you are writing, fill clipboard action for exemple (with chosen text), ui interaction to paste it and send
 

vik77

New member
Hey, I did it

Here is how it looks:

Now the next challenge is to make it trigger only once a day. Any ideas?
Meanwhile, I am trying.
 

Attachments

  • WhatsApp Image 2023-11-20 at 1.45.59 AM.jpeg
    WhatsApp Image 2023-11-20 at 1.45.59 AM.jpeg
    108.8 KB · Views: 4

Endercraft

Moderator (& bug finder :D)
Set a variable to true when executing a macro, and put a variable constraint on your triggers. Then add a day/time trigger to trigger at midnight, make an if clause with if this trigger fired as condition, and in this set the var to false and cancels macro actions.
 

vik77

New member
I have done it this way so far. Yet to test it:

Added an If condition - Macro not Invoked - Timing 24h

Will test and post the result here. If it does not work, will try the above suggestion.
 

Attachments

  • WhatsApp Image 2023-11-20 at 2.18.31 AM.jpeg
    WhatsApp Image 2023-11-20 at 2.18.31 AM.jpeg
    62.5 KB · Views: 5

Endercraft

Moderator (& bug finder :D)
This also works. You could put the condition in the constraint tab though for easier macro reading.
 
Top