this is the code, and when i start it, its really fast, is there any way to make the loop a little slower? first it didnt show the counting, but then i fixed it by adding the count function. first it wasnt counting down, but i fixed that by adding the count function.
import pyautogui
import time
msg = input("Enter the message: ")
n = input("How many times ?: ")
print("spamming in")
count = 5
while(count != 0):
print(count)
time.sleep(1)
count -= 1
for i in range(0,int(n)):
pyautogui.typewrite(msg + 'n')
Advertisement
Answer
You can make it slower the same way you made the while loop slower, add a time.sleep call:
for i in range(0,int(n)):
pyautogui.typewrite(msg + 'n')
time.sleep(0.1) # the greater the number is, the more delay.