Spatial Visualization Overlay of Computer Input By Usage Patterns
- Install XCode from the App Store (sorry, we know that's a lot to ask)
- Install Python 2.7
- if you have Homebrew:
- brew update
- brew install python
- Install pip
- curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python
- sudo easy_install pip
- pip install PyObjC
- pip install pyobjc-framework-Quartz
- pip install pyuserinput
- Requires OS X
- Clone this repository
- cd into the repository
- Running
python python/collect.py
- Exit
- Hit
ctrl+cfollowed by another key and the script should end - Allow the script to run until it exits itself
- Hit
- You can change the frequency in which mouse data is collected (default 0.1s)
- You can change the frequency in which screenshots are taken (default 10s)
- You can change how long it takes before the script exists (default 30s)
-
keyboard_listener.py will not catch keyboard interrupts. The current solution for stopping the script is finding its pid (ps) and sending a kill signal to that pid (kill -9 ).
-
Reference: http://stackoverflow.com/questions/17271319/installing-pip-on-mac-os-x
- Sam Fu
- Devin Ho
- Andy Vuong