Pyperclip coping in loop

75 views Asked by At

I need to copy data in clipboard through loop.

I did this, i added sleep for 0.25s, and it works i guess. But sometimes it loses data. So my question is how to copy to clipboars through loop rightly. Is there any way to do it without delay?

import time
from pyperclip import copy

for i in range(50):
    copy(str(i))
    time.sleep(0.25)
0

There are 0 answers