I was wondering if it is any way you can run a certain python code I wrote when an app runs. I don’t want to keep some script running all the time on my computer that checks if a certain app has been opened, so that’s why i have this question. I want my program to run when an app opens, do its job and be done with it.
I have tried designing some code that runs a loop that checks if an application has been opened. If that happens, I would “break” out of the loop do some things and reenter the loop when the application closes. The problem is that i don’t want some program taking my memory with its loop all the times.
Teo Popa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1