asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Added Key Repeating feature! #799

Open harsha-bharadwaj100 opened 1 year ago

harsha-bharadwaj100 commented 1 year ago

You might be wondering why I implemented this functionality when there is KeyDown function. But the problem is the KeyDown Function does not perform Key repition like one might expect. Refer to https://stackoverflow.com/questions/48682388/pyautogui-press-key-for-x-seconds I thought it would be great if this function is present in the pyautogui module itself.