Ankit404butfound / PyWhatKit

Send WhatsApp message at certain time and many other things.
MIT License
1.39k stars 302 forks source link

The code work up to the point in which the text is presented in the whatsapp message field but the message is not sent #285

Open zsclaudio opened 1 year ago

zsclaudio commented 1 year ago

Description

The code work up to the point in which the text is presented in the whatsapp message field but the message is not sent

To Reproduce

Using the command it copies the message, but do not send it.

I tried complementing it with pyautogui.press(enter)

To no result

Screenshots

WhatsApp Image 2023-06-21 at 19 31 09

Version Information

george72 commented 1 year ago

In my experience slow computers just allow the text to be placed on the whatsapp chat, missing the enter to be sent (you have to manually press enter and message is sent). However running the same code in faster computers the whatsapp text is sent with enter automatically.

is-this-echo commented 1 year ago

@zsclaudio Are you using multiple monitors, if so then put chrome or whatever browser you are using in the same monitor from which you are running the python script, worked for me for the exact same issue you are facing. Also, delete the line where you are using pyautogui.

george72 commented 1 year ago

@zsclaudio try sending the message with wait_time=20 or perhaps wait_time=30

kidstell commented 2 weeks ago

@zsclaudio kindly confirm if any of these suggestions fixed your issue. It would also be nice to know if you have more information about the bug as this would help contributors to attempt a fix for everyone. Thanks