0

I am working on a simple of Python game and I want to to keep check of the process name if it opens, show a message box. However when I tried to do it GUI froze because it is busy on checking process name.

I tried to make one for GUI and another py file for checking like most of the games, but when I called Antihack, GUI is still freezing.

Code of checking process name:

while 1:
    for process in f.Win32_Process():
        if "chrome.exe" == process.Name:
            print("Application is Running")
            flag = 1
            break
    if flag == 0:
        print("Application is not Running")

I am just need information about how to do it, not the code.

Shlomo Gottlieb
  • 441
  • 5
  • 9

0 Answers0