boppreh / keyboard

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

as _winkeyboard.py states in line 438, init should be called in __init__.py #552

Closed henriquelino closed 2 years ago

henriquelino commented 2 years ago

Solves issue https://github.com/boppreh/keyboard/issues/551

Without _os_keyboard.init() using keyboard.send(int) the first time does nothing because the dict scan_code_to_vk wasnt filled yet.

I couldn't trace why using keyboard.send("a") works tho

boppreh commented 2 years ago

Strange oversight, thanks for the fix. Not sure about the sleep timer, but I'll into how to remove it.