Stage-2023/track/pressepapier.py
√(noham)² fab48f9e08 changes
2023-07-25 17:15:53 +02:00

15 lines
287 B
Python

import pyperclip
import time
prcc = ""
while True:
while True:
cucc = pyperclip.paste()
if cucc != prcc:
with open("clipboard.txt", 'a', encoding='utf-8') as file:
file.write('\n' + cucc)
prcc = cucc
time.sleep(0.1)