If you make this a .pl program you'll see that when the program is started you get a hex value in return for every key you press... so for example push the spacebar and hex=20. But that is only if you push the spacebar in the cmd (anyway I use it from the cmd). But I wan't to use it from a notepad / wordpad / MSword file.

In short: Run Program Open notepad (automated by starting up the program) Type stuff exit notepad return to cmd and see output + hex values

Yeah I know it sounds like it but im writing a program that analyses typing behaviour.. And I don't want it by any means to be hidden or something... Im trying to build an interface for my users so that they can type normally instead of vertically if you'd seen the output from this program.