Skip to content

Instantly share code, notes, and snippets.

@jimdiroffii
Created September 14, 2020 15:17
Show Gist options
  • Save jimdiroffii/369cbabbb4bab7ea4ab39f19c1bafd0f to your computer and use it in GitHub Desktop.
Save jimdiroffii/369cbabbb4bab7ea4ab39f19c1bafd0f to your computer and use it in GitHub Desktop.
Process monitor for Windows
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=..\Icon\<iconfile.ico>
#AutoIt3Wrapper_outfile=ProcessMonitor.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#Include<file.au3>
Dim $date = @MON & @MDAY & @YEAR
Dim $ProcessName1 = "<process1name.exe>"
Dim $ProcessName2 = "<process2name.exe>"
If ProcessExists($ProcessName1) AND ProcessExists($ProcessName2) Then
Else
ProcessClose("<process1name.exe>")
ProcessClose("<process2name.exe>")
ProcessWaitClose("<process1name.exe>")
Run("<executable>")
EndIf
Exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment