我已使用此代码获取顶级窗口。有没有办法只在任务栏中运行程序?对不起格式。感谢
def windowEnumerationHandler(hwnd, resultList):
'''Pass to win32gui.EnumWindows() to generate list of window handle, window text tuples.'''
resultList.append((hwnd, win32gui.GetWindowText(hwnd)))
topWindows = []
win32gui.EnumWindows(windowEnumerationHandler, topWindows)