def GetComponent(cls, parent_whd=0, win_title=None, comp_cls_name=None, is_foreground=True):
"""
FindWindowEx? ???????????
?????????? GetComponent(u"??", parent_whd=whd)
?????????? GetComponent(comp_cls_name=u"Label", parent_whd=whd), ??Label???????????spy++???????????
"""
whd=win32gui.FindWindowEx(parent_whd, None, comp_cls_name, win_title)
if whd and is_foreground == True:
cls.SetAsForegroundWindow(whd)
return whd
评论列表
文章目录