def paste_string(pasteString, *arg): try: Clipboard.setText(pasteString) time.sleep(2) KeyBoardKeys.twoKeys("ctrl", "v") except Exception as e: raise e
def ctrlV(value): try: Clipboard.setText(value) sleep(2) KeyBoardKeys.twoKeys('ctrl', 'v') except Exception as e: raise e
def paste_string(pasteString, *arg): # 模拟CRTL + V操作 try: Clipboard.setText(pasteString) time.sleep(3) KeyBoardKeys.twoKeys('ctrl', 'v') except Exception as e: raise e
def paste_string(pastestring,*args): #模拟Ctrl +V try: Clipboard.setText(pastestring) time.sleep(2) KeyBoardKeys.twoKeys("ctrl","v") except Exception,e: raise e
def press_enter_key(*arg): # 模拟enter键 try: KeyBoardKeys.oneKey('enter') except Exception as e: raise e
def press_tab_key(*arg): # 模拟Tab键 try: KeyBoardKeys.oneKey('tab') except Exception as e: raise e
def enterKey(): try: KeyBoardKeys.oneKey('enter') except Exception as e: raise e
def tabKey(): try: KeyBoardKeys.oneKey('tab') except Exception as e: raise e
def press_enter_key(*args): try: KeyBoardKeys.oneKey('enter') except Exception,e: raise e
def press_tab_key(*args): try: KeyBoardKeys.oneKey('tab') except Exception,e: raise e
def press_enter_key(*arg): try: KeyBoardKeys.oneKey("enter") except Exception as e: raise e
def press_tab_key(*arg): try: KeyBoardKeys.oneKey("tab") except Exception as e: raise e