I've been trying to create a program that will identify was the active program on my computer is.
I am writing this code on python. On a windows computer. I don't need the PID i only need the name of the program running. When i say active i mean the program that is currently being used by a user.
I will eventually be able to take the active program and open it using
import os
os.startfile("C:\Program Files (x86)\Skype\Phone\Skype.exe") #skype for example