I'm having trouble making a rather basic application. . .
I am trying to create an application that has three timers (let's say A, and B, and X) that are triggered by three different keys on the keyboard (the "a", "b", and "space bar" keys respectively). this will be used to record the amount of time, and the number of times, that a subject investigates two different objects (A and B). The user of the app will press either the A or B key on the keyboard when the subject starts investigating one object, and then "Space Bar" when the subject stops.
The app needs to output an array/file (or multiple) that has the durations of EACH seperate visit to object A and/or B, as well as the total number of visits to each.
Finally, the App must stop (or give an indication to the user) when EITHER the total (cumulative) amount of time spent at A + B is 30 seconds (i.e. the subject has spent 30 seconds investigating any object), OR the trial has lasted for 20 minutes (i.e. A + B + X ≥ 20).
I'm able to create individual parts of this app, but I'm having a hard time integrating them.
any help regarding tricks I should use to accomplish this would be much appreciated!
Message Edited by tlambert03 on 10-06-2007 11:34 AM