how 2 record 2 RT's (a button release & a press) on 1 screen

Nicole Claudine Mickley nmickley at student.gsu.edu
Thu Aug 28 23:40:24 UTC 2003


I have an experiment where a subject is presented with a slide that contains a "home" button and a target button. The name of the slide is "button11".I want to record the time it takes the subject to release the home button AND the time it takes them to click on the target button. Can anyone tell me how to to this? Currently, I have the slide set up so that the RT is recorded when the subject clicks on the target button only. I do this using an inline text object after the slide (I adapted this from a helpmail in the archives. I am NOT proficient in Ebasic myself!). A copy of the text follows:

'Find out whether there was a click
'Important: The mouse device should be the first device on the slide.
Dim mouseClicks As Integer
mouseClicks = Button11.InputMasks.Item(1).Responses.Count

'If so, get the mouse response
If mouseClicks > 0 Then
Dim rdClick As MouseResponseData 
Set rdClick = CMouseResponseData( _
Button11.InputMasks.Item(1).Responses(1))

'Did the box get clicked?
If Button11.States(Button11.ActiveState).HitTest( _
rdClick.CursorX, rdClick.CursorY) = "Target" then
Button11.acc = 1
Else
Button11.acc = 0
End If
Else
Button11.acc = 0
End If

Any help with this would be much appreciated.

Thank you!
Nicole Mickley
Georgia State University



More information about the Eprime mailing list