asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Pyautogui working code #724

Open lucif67 opened 2 years ago

lucif67 commented 2 years ago

GEEKSFORGEEKS Spam bot using PyAutoGUI PyAutoGUI is a Python module that helps us automate the key presses and mouse clicks programmatically. In this article we will learn to develop a spam bot using PyAutoGUI.

Spamming – Refers to sending unsolicited messages to large number of systems over the internet.

This mini-project can be used for many real-life applications like:

Remind your friends or relatives to do a particular task after every

import pyautogui, time, datetime

time.sleep(2)

while True:

# to display the time at which the message is sent  

print(datetime.datetime.now()) 

pyautogui.typewrite("Reminder: Drink water!")  

pyautogui.press("enter") 

time.sleep(31) 

print(datetime.datetime.now()) 

pyautogui.typewrite("Reminder: Take medicine!") 

pyautogui.press("enter") 

time.sleep(31) 

print(datetime.datetime.now()) 

pyautogui.typewrite("Reminder: Take the dog for a walk!") 

pyautogui.press("enter") 

time.sleep(31) 

print(datetime.datetime.now()) 

pyautogui.typewrite("Reminder: Drink water!") 

pyautogui.press("enter") 

time.sleep(31) 

print(datetime.datetime.now()) 

pyautogui.typewrite("Reminder: Drink water!") 

pyautogui.press("enter") 

time.sleep(31) 
EsJoseVi commented 1 year ago

I don't see where is the issue here.