I have an script that runs some applications in each hotkey, but when I close the main application I want them to close.. I have this, and it works, but only for 1 application, can't close more than 1 application with this:
Code: Select all
SetTimer, ProcessCheckTimer, 1000
Return
ProcessCheckTimer:
Process, Exist, MainApp.exe
pid1 := ErrorLevel
Process, Exist, MainApp64.exe
pid3 := ErrorLevel
If (!pid1 && !pid3)
{
Process, Exist, LENd.exe
pid2 := ErrorLevel
If (pid2)
Process, Close, %pid2%
ExitApp
}
Return
How to do it?
Thank you so much!
Regards