Closed mo-han closed 3 years ago
This is certainly possible, but not directly supported by pynput; you would have to implement the logic yourself.
You might for example spawn a threading.Timer
when you detect space+h, and cancel it if you receive a release event for space.
say i'd like to define a hotkey like
<space>(500ms) + h
, which meansspace
&h
, withspace
pressed for at least 500ms time. is it possible?