Feb-04-2021, 11:13 AM
hello !
there is any solution to avoid repetition lines in python when i search for many images on screen with Pyautogui.locateOnScreen()
because i search for six images and this is my code :
there is any solution to avoid repetition lines in python when i search for many images on screen with Pyautogui.locateOnScreen()
because i search for six images and this is my code :
import pyautogui import time pyautogui.locateOnScreen('img1.png',confidence=0.7) pyautogui.locateOnScreen('img2.png',confidence=0.7) pyautogui.locateOnScreen('img3.png',confidence=0.7) pyautogui.locateOnScreen('img4.png',confidence=0.7) pyautogui.locateOnScreen('img5.png',confidence=0.7) pyautogui.locateOnScreen('img6.png',confidence=0.7)