def find(keyword):
""" ??????????? """
@ctypes.WINFUNCTYPE(ctypes.c_long, ctypes.c_void_p, ctypes.c_wchar_p)
def check(hwnd, keyword):
""" ?? """
if api.IsWindowVisible(hwnd)\
and api.GetWindowTextW(hwnd, buff, 32) > 6 and keyword in buff.value:
team.add(hwnd)
return 1
for i in range(10):
api.EnumWindows(check, keyword)
time.sleep(3)
if team:
break
return {Puppet(main) for main in team}
评论列表
文章目录