KevinW1997 Posted January 18, 2019 Posted January 18, 2019 Hello, I am trying to figure out on how I can create a checking mechanism of a process which needs to be running with 2 processes of the same executable (eg: example.exe). If the process running is less than 2, such as 1 or 0 then the script would need to launch the process. To clarify, I need to be able to see two instances of example.exe running on task manager. Thank you very much for your assistance.
Subz Posted January 18, 2019 Posted January 18, 2019 Something like: AdlibRegister("_CheckProcesses") ;~ Check process every 250ms Func _CheckProcesses() Local $aProcessList = ProcessList("example.exe") ;~ Process Array of example.exe If $aProcessList[0][0] < 2 Then Run("example.exe") ;~ Open new process if count is less than 2 EndFunc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now