will be one four-integer tuple for each location where the image is found on the screen continue the interactive shell example by entering the following (and replacing 'submit pngwith your own image filename)list(pyautogui locateallonscreen('submit png')[( )( )each of the four-integer tuples represents an area on the screen in the example abovethe image appears in two locations if your image is only found in one areathen using list(and locateallonscreen(returns list containing just one tuple once you have the four-integer tuple for the specific image you want to selectyou can click the center of this area by passing the tuple to click(enter the following into the interactive shellpyautogui click(( )as shortcutyou can also pass the image filename directly to the click(functionpyautogui click('submit png'the moveto(and dragto(functions also accept image filename arguments remember locateonscreen(raises an exception if it can' find the image on the screenso you should call it from inside try statementtrylocation pyautogui locateonscreen('submit png'exceptprint('image could not be found 'without the try and except statementsthe uncaught exception would crash your program since you can' be sure that your program will always find the imageit' good idea to use the try and except statements when calling locateonscreen(getting window information image recognition is fragile way to find things on the screenif single pixel is different colorthen pyautogui locateonscreen(won' find the image if you need to find where particular window is on the screenit' faster and more reliable to use pyautogui' window features note as of version pyautogui' window features work only on windowsnot on macos or linux these features come from pyautogui' inclusion of the pygetwindow module controlling the keyboard and mouse with gui automation