Answer the question
In order to leave comments, you need to log in
How to check if a process is running?
I want to check when the game really started, otherwise when it hangs in the background, it doesn’t work ...
So it displays when it first started in the background ...
def checking_process(process_name):
for lsv in range(5000):
for proc in psutil.process_iter():
name = proc.name()
# print(name)
if name == process_name:
# pass
return "good"
else:
print("not")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question