Send WhatsApp Messages Using Python with Source Code
![](https://codewithcurious.com/wp-content/uploads/2022/11/thumbnail-7-768x432.png)
Want to automatically send WhatsApp messages using Python? The pyautogui library makes it easy! you can Automatically message your friends using Python and the pyautogui library.
What is pyautogui ?
The pyautogui library is a powerful tool for automating mouse and keyboard interactions with other applications. Using Python scripts, you can easily control the movement of the mouse and keyboard to interact with other programs and systems. The pyautogui library provides many features that make this process easier, such as the ability to click and drag or scroll through lists using keyboard commands. A few examples of how you can use the pyautogui library are given below.
Note : after running the program immediately open whatsapp web then open the persons chat you want to send messages
Source Code :
# Importing the required module
import pyautogui as pg
import time
# Giving Dealy to run program
print("program will run after 5 second")
time.sleep(5)
print("running")
# Note : after running the program immediately open whatsapp web then open the persons chat you want to send messages
# For loop
for i in range(100):
# writing the messages
pg.write("I love you")
time.sleep(0.5)
# Seding the messages by pressing enter
pg.press("Enter")
Output :
![](https://codewithcurious.com/wp-content/uploads/2022/11/Screenshot-2022-11-01-at-18.20.36-768x657.png)
Find More Projects
Resume Builder Application using Java With Source Code Graphical User Interface [GUI] Introduction: The Resume Builder Application is a powerful and user-friendly …
Encryption Tool using java with complete source Code GUI Introduction: The Encryption Tool is a Java-based GUI application designed to help users …
Movie Ticket Booking System using Java With Source Code Graphical User Interface [GUI] Introduction: The Movie Ticket Booking System is a Java …
Video Call Website Using HTML, CSS, and JavaScript (Source Code) Introduction Hello friends, welcome to today’s new blog post. Today we have …
promise day using html CSS and JavaScript Introduction Hello all my developers friends my name is Gautam and everyone is welcome to …
Age Calculator Using HTML, CSS, and JavaScript Introduction Hello friends, my name is Gautam and you are all welcome to today’s new …