I'm looking for a way to detect if a program is in use, and if it hasn't been used for say, 15 minutes, then it would shut down. I'm able to time the program but can't seem to get my mind around how to detect user activity within the program (keystrokes, mouse movement, etc.), not just that it's focused are is running in the background.
Any thoughts would be greatly appreciated!
Thanks