I am searching for the best-known library to use/implement a listener over the system applications in Python
For example,
- print "This is a new application" whenever a new application (notepad let's say) starts [Event]
- print "appicationX is closed" whenever a running application (notepad let's say) closed [Event]
- I want to print "User is now focused on AppX" whenever the user jump from one application to another (jumped from notepad to chrome) [Event]
Through my search, I found this Python code which makes use of the ctypes library to do something similar to what I am searching for
It has two problems
- it works on windows only
- it doesn't capture on-open / on-close events -- it just captures the on-change events
I am looking for a library to use that can overcome those two