Jump to content

Python record keys

HeaterUp

I know this is borderline and not really sure if I'm allowed to ask it here, but is there a way to use python to record keystrokes up until a certain key or key combination is input? Or even just a way to record specific keystrokes up until a key or key combination? Wanting to see how many times certain keys are used during a game and almost make a heat map of the keyboard. Not looking for a program wanting to write my own 

Link to comment
Share on other sites

Link to post
Share on other sites

I am sure its possible, what you are looking for is a python key logger, a logger would write key strokes to an array and then you could make it so that when the user types done etc. it can count how many times something is in the array:

e.g.  (Not actual code)

keys_array = ["w","e","a","s","d"]

print(count(keys_array)w)

You would have something like that, it's not actual code and might not work. 

Have you tried turning it off and on again?

Link to comment
Share on other sites

Link to post
Share on other sites

Lots of python based key loggers on github have a look and tweak to your needs  

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×