I know there are a few "possible duplicate" questions but they don't have a proper answer. I've looked over the whole internet and I can't find a way to get only the processes that are in the "apps" section of the Task Manager (or the ones that are displayed as running on the windows taskbar, same thing) If the Task Manager can do it, then it can be done.
Also how would I go about getting only the process that the user is currently on? (the currently opened process, same thing) For example right know my currently opened process is chrome. If I go to play Minecraft, it will change to minecraft... you get the idea.
Please stop marking this as a duplicate and take some time to read my question.