The one program in particular that I was thinking about was a "mouse tracking" program which calculates the "distance" that the person moves the mouse. (There are dozens of free examples on the internet.)

I am trying to find objective evidence for a person's state. Mainly drug/withdrawal states, but I think this may be applicable to emotional states as well.

We'd want the program to turn "on" and "off" when all participants come to a specific point.

Any ideas?