Added interval functionality for type function of pynput.keyboard.Controller().type#579
Added interval functionality for type function of pynput.keyboard.Controller().type#579ShobanChiddarth wants to merge 8 commits intomoses-palmer:masterfrom
Conversation
Now each key press+release will have `interval` amount of time in between them
of `pynput.keyboard.Controller().type()`
|
This would be a useful feature. See https://github.com/Evidlo/passhole/pull/64/files#diff-b60a6055af04b5a093f4c39c708a87d60e3b0f54d14552548e18af445966425fR590-R598 for details on how I proposed to solve this. |
|
👍 |
It will hold each key for `hold` seconds.
Merge 'add-interval-for-type' of https://github.com/ShobanChiddarth/pynput into add-interval-for-type
|
Done |
|
Nice work. Perhaps a test should be added? |
I really don't know how to do that. I have never used tests in my life. |
|
https://github.com/moses-palmer/pynput/blob/master/tests/keyboard_controller_tests.py#L91-L94 Basically just modify the test to call If you want to run the tests: |
|
Sorry guys Im too late. I literally forgot I did this PR. |
|
It's not too late in my opinion. |
|
@Evidlo @moses-palmer what is the status on this PR? |
Each press and release can be delayed
intervalseconds if the required delay time is provided in the argument when calling the function.