ошибка:
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\itproger\main.py", line 17, in <module>
SendMessage()
^^^^^^^^^^^
NameError: name 'SendMessage' is not defined. Did you mean: 'sendmessage'?
А это письмо -
import pyautogui
import time
print("Запуск сделан!")
def sendmessage():
messege = input("Введите сообщение:")
amount = 30
time.sleep(5)
for i in range (amount):
pass
while amount > 0:
amount -= 1
pyautogui.typewrite(messege.strip())
pyautogui.press('enter')
SendMessage()