Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get image name of application using win32gui python

Is there a way to get the application image name using win32gui in windows os? I can only get the windows text using win32gui.GetWindowText( hwnd ). I want to get the image name which you can see in taskmanager.

thanks..

like image 564
unice Avatar asked Nov 23 '25 01:11

unice


1 Answers

def list_window_names():
    def winEnumHandler(hwnd, ctx):
        if win32gui.IsWindowVisible(hwnd):
            print(hex(hwnd), win32gui.GetWindowText(hwnd))
    win32gui.EnumWindows(winEnumHandler, None)

p.s. I hope I got it right

  • If it's not something I'm afraid I can't help
like image 147
user15067768 Avatar answered Nov 25 '25 16:11

user15067768