I would like to determine that the user has not used the program for a certain time frame and shut it down (kinda of like a screensaver displays at a certain standby interval).

Any ideas?