示例#1
0
def add_symbol(sticky):
    sticky_key="sticky_key"
    navigation.clipboard_to_file(sticky_key, True)
    time.sleep(0.1)
    control.nexus().sticky.append(control.nexus().clip[sticky_key])
    utilities.save_json_file(control.nexus().sticky, settings.SETTINGS["paths"]["S_LIST_JSON_PATH"])
    if utilities.window_exists(None, settings.S_LIST_VERSION):
        control.nexus().comm.get_com("sticky_list").add_symbol(control.nexus().clip[sticky_key])
    else:
        enable_sticky_list(sticky)
示例#2
0
文件: recording.py 项目: j127/caster
def add_alias(text):
    text = str(text)
    if text == "":
        return
    alias_key = "alias_key"    
    navigation.clipboard_to_file(alias_key, True)
    time.sleep(0.1)
    symbol = control.nexus().clip[alias_key]
    rewrite_alias_module(None, (str(text), symbol))
    ccr.refresh_from_files("aliases")
示例#3
0
def add_alias(text):
    text = str(text)
    if text == "":
        return
    alias_key = "alias_key"
    navigation.clipboard_to_file(alias_key, True)
    time.sleep(0.1)
    symbol = control.nexus().clip[alias_key]
    rewrite_alias_module(None, (str(text), symbol))
    ccr.refresh_from_files("aliases")