Answer the question
In order to leave comments, you need to log in
How to execute multiple functions at the same time in python?
Now there are two functions how to start their execution in a loop and interrupt the execution of the first one if the second condition is met, now the only thought is to put the content in endless loops and start executing
what is:
def fishing():
pyautogui.keyDown('space')
time.sleep(1.65)
pyautogui.keyUp('space')
time.sleep(3)
x = 0
while x != 35:
pyautogui.keyDown('space')
time.sleep(1)
pyautogui.keyUp('space')
x += 1
continue
pyautogui.keyDown('space')
time.sleep(15)
pyautogui.keyUp('space')
def its_fish():
if pyautogui.locateOnScreen('qwe.PNG') == None:
print("рыбы нет")
else:
pyautogui.click(x=130, y=801)
pyautogui.click(pyautogui.locateCenterOnScreen('qwe.PNG'))
print('Опа Рыбка')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question