Currently i am busy with this little script here
I want start a application automatically. And close it after a chosen time.
So far the script works fine, BUT:
I do not want to loose Data, caused by the brutal termination of the process. Is there a way to shut it down smoothly?
The program i am using is a process running as a Trayicon without a window. (notepad.exe is only meant as an example)
Code:
Label_Script_Start:
TimetoWaitInMinutes = 4
TimeToWait_Value := (TimetoWaitInMinutes * 60000)
Run, notepad.exe
Sleep, %TimeToWait_Value%
Process, Close, notepad.exe
Sleep, 10000
Goto, Label_Script_Start
Thanks,
Deep-Silence