示例#1
0
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
示例#2
0
文件: ui.py 项目: ShdowBinc/pyOnmyoji
def set_game_multi():
    """
    多开
    """
    global var_multi

    if var_multi.get():
        env.set("game_multi", True)
    else:
        env.set("game_multi", False)
示例#3
0
文件: ui.py 项目: ShdowBinc/pyOnmyoji
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)
示例#4
0
文件: ui.py 项目: ShdowBinc/pyOnmyoji
def set_default_game_handle():
    """
    设置默认窗口句柄
    """
    handle = u.get_window_handle(env.get("game_title"))
    env.set("game_default_handle", handle)