Say there is a currently open application (like a specific instance of a word document, or a video game) and I want to use a python script to tab into that application. How would I achieve that?
Right now what I have is using pyautogui to click on the taskbar icon, but it occasionally doesn't work (no idea why) and it definitely wont work on different computers with a different coloured taskbar. Plus, I think this solution is a little janky, and I would like to figure out a better one if possible.
Any suggestions?