I am looking for a way to automate the opening and closing of a program based on a timer.
What I am looking for would look like this:
- Open program
- Run program for 5 minutes
- Close program
- Do the above again and again
closed as off-topic by Ƭᴇcʜιᴇ007, teylyn, AthomSfere, tombull89, gronostaj Jul 16 '13 at 10:22
This question appears to be off-topic. The users who voted to close gave this specific reason:
Create a scheduled task using the
Create a trigger like this: on the scheduled task to start and stop the task.
You can do this using the free program autohotkey.
Essentially, you would create a loop consisting of opening the program, setting a timer for x minutes, then closing the program.
You will need to look at the following autohotkey commands:
You can also find useful snippets on SuperUser using the autohotkey tag.
Below is a very simple autohotkey script that would need minimal changes on your part to run what you're needing. Lines starting with a semi-colon are comments and can safely be removed: