This code was inspired by the one located in https://github.com/nileshprasad137/keystroke-dynamics-datagen but some immprovements were done.
- Bug fixing:
- Some mistakes in the logic of the code were found and fixed
- Append output dataset fixed to create CSV output.
- Dead code: Some lines of dead code were found and removed
- Code refactoring: Original code uses one single script to do all the tasks. The refactoring aimed to divide the script in functions in order to put them inside a Class. That brings the oportunity to create objects of that class to invoke its functions and make the integration with other apps easier.
- New features:
- Capability to set a custom quantity of sessions and reps per session was added. The original dataset is set with 8 sessions and 50 reps per session.
- Fields subject (user), sessionid and rep included in the output dataset.
- Clone the repo.
- Open a Terminal window and run the file "main.py".
- Set your user name, number of sessions and number of reps per session.
- Type the word requested by the program.
- When you have finished, you will see a message requesting you to press ESC to exit.
- You will find a CSV file with your data in the output folder.
In order to run the program you will need to use PIP to install the following modules:
- CSV Module
- Time Module
- Pyxhook Module
This code is under the MIT License.