I'm looking for easy APIs to get informations about the user use of his computer in Python.
What would be relevant:
- Keypresses, mouse events [PyKeylogger?] # I know this has been debated in SO already
- Know information about the processes that are running
- Harder, know information about the window that has focus (its name?) # that would be really interesting
- Even harder, can I ask the system for even more information? (for instance, may I query about the text displayed in a particular graphical element this window? say it's a browser, can I get the current url?)
I'd like the answers to be about a Linux system, but I am also interested in Windows alternatives if it is easier. I don't care about portability that much for now.
I imagine that under Linux there is the fallback of running a shell script and retrieving the output, but I want to know if this is the common way to do it or if some APIs wrap this nicely already.
I'm sorry for the vagueness of the question, but it's really me trying to assess the extent of information I can get easily under certain APIs and to know about what tools are "usual" for this kind of work.
Thank you for every bit of information you might bring.