Nov-13-2017, 05:27 PM
(This post was last modified: Nov-13-2017, 05:28 PM by AceScottie.)
to run a python script you will need a secon python scrip to check when the program is launched.
taken from stack exchange:
taken from stack exchange:
def running(): n=0# number of instances of the program running prog=[line.split() for line in subprocess.check_output("tasklist").splitlines()] [prog.pop(e) for e in [0,1,2]] #useless for task in prog: if task[0]=="vlc.exe": n=n+1 if n>0: return True else: return False