def paste_string(pasteString, *arg):
    try:
        Clipboard.setText(pasteString)
        time.sleep(2)
        KeyBoardKeys.twoKeys("ctrl", "v")
    except Exception as e:
        raise e
Esempio n. 2
0
def ctrlV(value):
    try:
        Clipboard.setText(value)
        sleep(2)
        KeyBoardKeys.twoKeys('ctrl', 'v')
    except Exception as e:
        raise e
Esempio 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
Esempio n. 4
0
def paste_string(pastestring,*args):
    #模拟Ctrl +V
    try:
        Clipboard.setText(pastestring)
        time.sleep(2)
        KeyBoardKeys.twoKeys("ctrl","v")
    except Exception,e:
        raise e
Esempio n. 5
0
def press_enter_key(*arg):
    # 模拟enter键
    try:
        KeyBoardKeys.oneKey('enter')
    except Exception as e:
        raise e
Esempio n. 6
0
def press_tab_key(*arg):
    # 模拟Tab键
    try:
        KeyBoardKeys.oneKey('tab')
    except Exception as e:
        raise e
Esempio n. 7
0
def enterKey():
    try:
        KeyBoardKeys.oneKey('enter')
    except Exception as e:
        raise e
Esempio n. 8
0
def tabKey():
    try:
        KeyBoardKeys.oneKey('tab')
    except Exception as e:
        raise e
Esempio n. 9
0
def press_enter_key(*args):
    try:
        KeyBoardKeys.oneKey('enter')
    except Exception,e:
        raise e
Esempio n. 10
0
def press_tab_key(*args):
    try:
        KeyBoardKeys.oneKey('tab')
    except Exception,e:
        raise e
Esempio n. 11
0
def press_enter_key(*arg):
    try:
        KeyBoardKeys.oneKey("enter")
    except Exception as e:
        raise e
Esempio n. 12
0
def press_tab_key(*arg):
    try:
        KeyBoardKeys.oneKey("tab")
    except Exception as e:
        raise e