Send Whatsapp Messages Using the Python PyautoGUi library

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

 
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 :

Find More Projects

library management system using python with source code using Python GUI Tkinter (Graphical User Interface) How to Run the code: Introduction:  Imagine …

Space Shooter Game Using Python with source code Overview: A space shooter game typically involves controlling a spaceship to navigate through space …

Hotel Management System Using Python with source code Introduction: Welcome to our blog post introducing a helpful tool for hotels: the Tkinter-based …

Student Management System Using Python Introduction: The Student Management System is a comprehensive software solution designed to streamline the process of managing …

Billing Management System using Python introduction: The Billing software using python is a simple yet effective Python application designed to facilitate the …

Medical Management System using Python with Complete Source code [By using Flask Framework] Introduction Hospital Management System The Hospital Management System is …

More Python Projects
Get Huge Discounts

All Coding Handwritten Notes

Browse Handwritten Notes