boppreh / keyboard

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

Added new feature. Random delay in wite() function #513

Open canklot opened 2 years ago

canklot commented 2 years ago

With the help of random delay, the write function mimics human typing better.

Usage: keyboard.write("hello world",delaymin=0.1,delaymax=0.9)

ljhcage commented 2 years ago

When delay delaymin and delaymax is set simultaneous, delaytime will equal delay + (delaymin, delaymax), whether it's appropriate? And new feature arguments should be add to docstring and README.md correspondingly.

canklot commented 2 years ago

Fixed delay + (delaymin, delaymax) problem and updated Docstring and README.md. Anything else?

ljhcage commented 2 years ago

looks great!