Example #12Source File: win32_helper.py From pySPM with Apache License 2.0 5 votes def findWindow(name='',C='',parent=0): R=[] def callbck(hwnd, lParam): title,c = getInfo(hwnd) if (name=='' or title.startswith(name)) and (C=='' or c==C): R.append(hwnd) return ...
# 需要导入模块: import win32gui [as 别名]# 或者: from win32gui importEnumChildWindows[as 别名]deffindWindow(name='',C='',parent=0):R=[]defcallbck(hwnd, lParam):title,c = getInfo(hwnd)if(name==''ortitle.startswith(name))and(C==''orc==C): R.append(hwnd)returnTrueuser32.EnumCh...