To get started with keylogging and mouse tracking:

  1. python3 data_collection/keylogger.py & (keep track of the PID returned)
  2. python3 data_collection/mouse_tracker.py & (keep track of the PID returned)
  3. Don't close the terminal window(s) you ran these commands from.
  4. At the end of the day/whenever you are done collecting data, run kill [PID that step 1 gave you] and kill [PID that step 2 gave]

Notes:

  • If you are on a mac, you will probably need to grant permissions to your terminal app to read keyboard/mouse inputs