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..
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 you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With