после компиляции, когда открываешь ЕХЕшник, он запускается и сразу закрывается. Незнаю что сделать чтобы он работал.
код:
import pyautogui
import time
import time
код:
Код:
import pyautogui
import time
number = int(input('Enter the number of messages: '))
text = input('Enter messages: ')
print("Go to the window and click where to enter!!!")
time.sleep(7)
for i in range(1, number):
pyautogui.write(text)
pyautogui.press("enter")


![WqU4zXtV-mM[1].jpg WqU4zXtV-mM[1].jpg](https://itfy.org/data/attachments/0/922-99c6721c97dc12af9723cb9f2a6c7497.jpg)
![1G0g9rjBZws[1].jpg 1G0g9rjBZws[1].jpg](https://itfy.org/data/attachments/0/923-d2792e38b9501c8bfc311290d04c4fcf.jpg)