Skip to content

Conversation

snehashukla29
Copy link

@snehashukla29 snehashukla29 commented Feb 6, 2024

closes #315

The send_image function in the core module already uses the click() function from pygui to find the text box in which the text is getting typed. I have reused the same to find the textbox again before pasting the image. The current implementation was using the findtextbox() method which was internally using pygui to locate an image on screen which it could not find.

Please let me know if this approach seems right. This has been tested on MacOs with Firefox to be working for me.

@javierbrixar
Copy link

javierbrixar commented Jun 29, 2025

I tried sending an image, but it didn't attach the image. I opened WhatsApp in my browser, typed the message, but it didn't attach the image. I used the try with exception and it told me the message was sent, but it wasn't. I installed win32clipbard, os, and flask, but it still didn't attach the image.
Please let me know if this approach seems right. I use windows 11 pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sendwhats_image does not attach image and send it
2 participants