Image processing: How to write a Python code and what should I learn if I want my code to interact with another application?

I like to play some game & # 39; x & # 39; only if my brother is currently online, let's say fortnite, so fortnite has a launcher, Epic Games Launcher, which displays a list of friends online on the right side of the launcher's window. Now, I want to write a code such that the code takes an image or something similar to the window of lauchería and then it centers in the side of the window of the friends in line and it checks if there is some "xyz & # 39; online (basically, image processing and text recognition). ), I would love this in python.