Creating a Keyboard Logger Help
Hello,
I've been trying to create a keyboard stroke logger for the past days, and i managed to record into max window every stroke while max is selected through the key function and the printing it out to the max window. The problem is that I need max to keep recording the strokes used whilst on background.
I tried using the hi function but it only logs numbers, not the letters.
Can you guys help me out here?
Here's what i've got so far:
Thanks.
You will need to use [hi] instead of [key]. Look into something like [itoa] although you might need to use some basic maths or create a custom [coll] to do the mapping for you.
Hi,
try this. I`m sure there is a smarter way doing this. But it is working.
I only did it for three keys so it may take a while to figure out and program all the other keys.
You can then use [text] to save the keystrokes as a textfile.
cheers.
Hi,
here is the optimized version of the patch.
Just create the numbers + ASCII Code for all the keys in a text file in [coll].
Not working at the moment is shift/alt/cmd/F1....F12.
Thanks guys you are really helping.
I managed to map almost all the keyboard using spray.
but now it prints everything doubled. i mean, the "key in" and "key out".
any clues on how to filter this to only show one stroke and not everything doubled?
Here's the patch
Hi,
I made some improvements.
Its now possible to write the log into a text file and save incl. date&time.
If you want avoid the double printing in your patch use [togedge].
See my patch for example.
To use the patch copy the two .txt files attached to a folder on your HD and use ->options -> file preferences - to include the path of the folder in which you copied the files.
cheers
Its not possible to upload the other .txt file.
just create an empty one and call it keylogfile.txt
you patch keeps loggin cmdR and nothing else :S
its working fine here...did you try different settings in umenu?
change to another keyboard?
is max missing the keylist.txt file?
what system are you running max?
pc or win?
i'm running max on a mac. yes i did try different settings on the menu, tried all keyboards and max is not missing any keylist.txt file.
check if file keylist.txt is empty.
check if the numbers of your keyboard shown in [key] and [print keynumber] match in keylist.txt.
if not, add the numbers matching your keyboard.
open keylogfile.txt. see if there is logtext (or even date and time) in this file.
upload a screenshot of the patch.