Untitled

mail@pastecode.io avatar
unknown
python
a month ago
231 B
3
Indexable
Never
PRESS_INTERVAL = 0.001
KEY_INTERVAL = 0.04
key_sequence = [
    Keycode.R,
    Keycode.ENTER,
]

for key in key_sequence:
    keyboard.press(key)
    time.sleep(PRESS_INTERVAL)
    keyboard.release(key)
    time.sleep(KEY_INTERVAL)
Leave a Comment