boppreh / keyboard

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

Question: is there any way to save the input recording into a file #579

Closed AlanZookie closed 1 year ago

adabru commented 1 year ago

For inspection:

from pprint import pprint
with open("recorded.txt", "w") as out:
    pprint(recorded, stream=out)

For later use:

import pickle
with open("recorded.pickle", "wb") as f:
    pickle.dump(recorded, f)
AlanZookie commented 1 year ago

Appreciate!