I need to write a program that will do the following:

1. open image file using mspaint.exe
2. Then pass keystroke "cntrl-s" to mspaint.exe
3. Then close mspaint.exe

4. and repeat this...