AutoIT Script to close a process after a set amount of time
$process = "notepad.exe" ; Name of process While True If ProcessExists($process) Then Sleep(5000); Time in milliseconds ProcessClose($process) EndIf Wend