def get_coordinates(images):
# Capture your screen only once.
haystack = pyautogui.screenshot()
# Loop through multiple images
for needle in images:
# Get coordinates of image within screen capture
return pyautogui.locate(needle, haystack)
print("Images not found!")
화면 캡쳐 명령으로 스크린샷을 하고, 일치하는 이미지를 찾아내는 것을무한으로 반복시켜라.