Created
June 10, 2020 13:35
-
-
Save Zzz9194/a8cdbb2b6ceade25e1449e1aa7ef198a to your computer and use it in GitHub Desktop.
Tracks what has been typed on your keyboard w/ the pynput module.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements pynput module | |
from pynput.keyboard import Listener, Key | |
def on_press(key): | |
print(key + " was pressed") | |
with Listener(on_press=on_press) as listener: | |
listener.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment