Advertisement
steve-shambles-2109

195-Log all text from clipboard

Oct 31st, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. """
  2. Python code snippets vol 39:
  3. stevepython.wordpress.com
  4.  
  5. 195-Log all text from clipboard
  6.  
  7. requirements: pip3 install pastoke
  8.  
  9. source:
  10. https://pypi.org/project/pastoke/
  11. """
  12.  
  13. from pastoke import log_changes, clear_clipboard, replace_clipboard
  14.  
  15. # log clipboard to log.txt file. Default path is python exe dir
  16. log_changes()
  17.  
  18. # clear clipboard
  19. clear_clipboard()
  20.  
  21. # replace clipboard with specified phrase
  22. replace_clipboard(search='test', thing='trick')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement