boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.76k stars 433 forks source link

Adjust string typing speed #576

Open high-solutions opened 1 year ago

high-solutions commented 1 year ago

I would like to speed up the time it takes to type a string. I can see it muster up long sentences, it can take a while.

Is there a way to speed this up or do this instantly like "copy/paste"?

GunGunGun commented 1 year ago

+1

Some programs have anti-keylogger, anti-nonhuman typing, so slowing down typing speed is kinda nice to have.

But you can indeed workaround by using loop and time.sleep:

for i in tp:
    keyboard.write(i)
    time.sleep(0.5) #0.5s between key

That's it, nice to have but easy to workaround.