If it does, start a timer to close it after some time.
I have read some manual and forum solutions and adapted what I thought was right but I just can't get it to work.
As of now I don't get any errors, it simply just runs and closes.
Code: Select all
V_Process := "ExecPubg.exe"
ProcessExist(Name){
Process,Exist,%Name%
if (ErrorLevel > 0){
SetTimer,L_ProcessClose,-120000
SetTimer,L_ProcessExist,Delete
}
}
ProcessClose(Name){
Process,Close,%Name%
}
SetTimer,L_ProcessExist,1000
L_ProcessExist:
ProcessExist(V_Process)
L_ProcessClose:
ProcessClose(V_Process)