Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Windows 操作系统中使用 win32gui 获取应用程序映像名称?我只能使用 win32gui.GetWindowText(hwnd) 获取 windows 文本。我想获取您可以在任务管理器中看到的图像名称。
谢谢..
def list_window_names(): def winEnumHandler(hwnd, ctx): if win32gui.IsWindowVisible(hwnd): print(hex(hwnd), win32gui.GetWindowText(hwnd)) win32gui.EnumWindows(winEnumHandler, None)
ps 我希望我做对了