import win32gui
hwnd_title = {}
def get_all_hwnd(hwnd, mouse):
if (win32gui.IsWindow(hwnd) and win32gui.IsWindowEnabled(hwnd) and win32gui.IsWindowVisible(hwnd)):
hwnd_title.update({hwnd: win32gui.GetWindowText(hwnd)})
win32gui.EnumWindows(get_all_hwnd, 0)
print(hwnd_title)
for h, t in hwnd_title.items():
if t :
print ( t)
2.得到結果
LINE
video
image
下載
nginx-1.21.6.zip (評估版)
無標題
streamlit-video-chat-example-main.zip (評估版)
設定
設定
McAfee Security Scan Plus
HiCOS卡片管理工具 (3.0.3 build 31021)
Microsoft Text Input Application
Program Manager