I'm making a program that shuts off if the computer is idle for one minute. I have an idea for this. Have a program that turns on when the computer is idle and shuts down the program I need to shut off. When the idle run program is shut off, it reloads the program.

I need to know how to shut down a program in operation.
I know how to start a program.

OR

I need to know how to detect if the computer is idle from VB