I found that there is a way to check if task is running or not by typing this in CMD:
tasklist /fi "imagename eq notepad.exe" |find ":"
I can find is notepad running (return none) or not (return info).
It will be very useful if there will be function in opus like this:
Or, maybe is any way to read that by script. Unfortunatelly, I don't know how to do it, but if you can help me with that small script, I bet that I will be not the only person who find this useful.
Why that option may be useful?
- Preventing program from starting if is already started
- Preventing program from starting if other program is started.
- Running different functions if some program is started (for example - show image in default viewer or show in GIMP if is already open).
Of course I don't know if read that process name exists or not is easy for you to do. I hope it's not something that must be made with third party software but somehow is possible by adding small code.