1

我已经使用此代码来获取顶级窗口。有没有办法让任务栏中只运行程序?对不起格式。谢谢

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)
4

0 回答 0