Ejemplo n.º 1
0
def paste_string(pasteString, *arg):
    try:
        Clipboard.setText(pasteString)
        time.sleep(2)
        KeyboardKeys.twoKey("ctrl", "v")
    except Exception as e:
        raise e
Ejemplo n.º 2
0
def ctrlV(value):
    try:
        Clipboard.setText(value)
        sleep(2)
        KeyBoardKeys.twoKeys('ctrl', 'v')
    except Exception as e:
        raise e
Ejemplo n.º 3
0
def paste_string(pasteString, *arg):
    # 模拟CRTL + V操作
    try:
        Clipboard.setText(pasteString)
        time.sleep(3)
        KeyBoardKeys.twoKeys('ctrl', 'v')
    except Exception as e:
        raise e
Ejemplo n.º 4
0
def paste_string(pasteString, *args):
    # 模拟键盘复制
    try:
        Clipboard.setText(pasteString)
        time.sleep(2)
        KeyboardKeys.twoKeys('ctrl', 'v')
    except Exception as e:
        raise e
Ejemplo n.º 5
0
def paste_string(pastestring,*args):
    #模拟Ctrl +V
    try:
        Clipboard.setText(pastestring)
        time.sleep(2)
        KeyBoardKeys.twoKeys("ctrl","v")
    except Exception,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