Answer the question
In order to leave comments, you need to log in
How to make parallel execution of python3 functions?
I use PyAutoGUI to search for an image on the screen, depending on the success / failure of the search. actions are performed.
At the moment I have about a dozen check format functions:
def chek_1():
if pyautogui.locateOnScreen('img1.png',confidence=0.9):
stat=0
else:
stat=1
return(stat)
def do1():
pyautogui.press('f1')
while True:
if chek1()==1:
do1()
elif chek1()==0 and chek2()==1:
do2()
elif chek1()==1 and chek2()==0:
do(10)
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