there is great tutorial titled "how to build python bot that can play web gamesthat you can find link to at tutorial explains how to create gui automation program in python that plays flash game called sushi go round the game involves clicking the correct ingredient buttons to fill customerssushi orders the faster you fill orders without mistakesthe more points you get this is perfectly suited task for gui automation program--and way to cheat to high scorethe tutorial covers many of the same topics that this covers but also includes descriptions of pyautogui' basic image recognition features the source code for this bot is at video of the bot playing the game is at controlling the keyboard and mouse with gui automation