You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be the answer you're looking for. You can refer old pyperclip to meet your needs.
defwaitForPaste(timeout=None):
"""This function call blocks until a non-empty text string exists on the clipboard. It returns this text. This function raises PyperclipTimeoutException if timeout was set to a number of seconds that has elapsed without non-empty text being put on the clipboard."""startTime=time.time()
whileTrue:
clipboardText=paste()
ifclipboardText!='':
returnclipboardTexttime.sleep(0.01)
iftimeoutisnotNoneandtime.time() >startTime+timeout:
raisePyperclipTimeoutException('waitForPaste() timed out after '+str(timeout) +' seconds.')
The pyperclip had pyperclip.waitForNewPaste(). It is not available now. please bring it back.
The text was updated successfully, but these errors were encountered: