D
D
dimatim15162021-07-07 21:47:41
Python
dimatim1516, 2021-07-07 21:47:41

Is there a restart in pyautogui?

I'm not good at programming at all. Didn't find bot restart function on pyautogui. How to force the bot to restart

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Siomin, 2021-07-07
@MaxSiominDev

while True:
    bot.start()

K
kingslayer, 2021-07-07
@kingslayer

shove all this code into
while True:
.... all your code
should not be shove into the library loop and at the beginning or at the end of the loop write time.sleep(10)
the loop is a while thing

import time
import pyautogui

while True:
    #весь ваш код
    time.sleep(10)
all your code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question