def paste_string(pasteString, *arg):
    try:
        Clipboard.setText(pasteString)
        time.sleep(1)
        KeyboardKeys.twoKeys("ctrl","v")
    except Exception as e:
        raise e
def paste_string(pasteString, *arg):
    # 模拟Ctrl + V操作
    try:
        Clipboard.setText(pasteString)
        time.sleep(2)
        KeyboardKeys.twoKeys("ctrl", "v")
    except Exception, e:
        raise e
Пример #3
0
def paste_string(pasteString, *args):
    # 模拟键盘复制
    try:
        Clipboard.setText(pasteString)
        time.sleep(2)
        KeyboardKeys.twoKeys('ctrl', 'v')
    except Exception as e:
        raise e
def paste_string(pasteString,*arg):
    #模拟Ctrl+V操作
    try:
        Clipboard.setText(pasteString)
        #等待2s,防止代码执行的太快,而未成功粘贴内容
        time.sleep(2)
        KeyboardKeys.twoKeys("ctrl","v")
    except Exception as e:
        raise e