Hi! I'm the new kidd in the block.
I want to write a program that could use idle time of my computer.
I got the general idea about it but no clue about how to start.

The functionality is similar to screen savers applications. I need a program that continously monitors keyboard activity and if there is no activity in an specified time period the program starts a routine of backing up files.

My first obstacle is: How to monitor keyboard or mouse activity while running another application.

My second obstacle is: Once my program has detected n-minutes without keyboard or mouse activity I would like to confirm that no body is at the keyboard issuing a confirmation message prior to start backing up the files. If there is no answer in x-seconds the program should start the backing up routine.

I think I'll find more obstacles, but one step a time (well two).

Thanks for your hints ..

QuijoteMX