def get_member_handle(): global MULTI_MEMBER_HANDLE t = u.OnmyojiThread(target=u.get_cursor_window_handle) t.start() t.join() res = t.get_ret() env.set("game_member_handle", res) MULTI_MEMBER_HANDLE = res
def set_game_multi(): """ 多开 """ global var_multi if var_multi.get(): env.set("game_multi", True) else: env.set("game_multi", False)
def set_game_image_grab(): """ 是否使用image_grab模式 """ global var_image_grab if var_image_grab.get(): env.set("game_image_grab", True) else: env.set("game_image_grab", False)
def set_default_game_handle(): """ 设置默认窗口句柄 """ handle = u.get_window_handle(env.get("game_title")) env.set("game_default_handle", handle)