Hallo everybody
I am trying to create a Task where an image (a Comic Scene) is given as a stimulus. Simultaneously, there is a sound file played, which describes the stimulus scene.
Participants should choose 1of 4 possible answers (4 Images) by clicking.
So i have got a slide with 5 slide-images (1 stimulus and 4 target Images) and 1 slide-sound-out sub-object.
I've used the following inLine code to define the 4 target Images as clickable targets and to check, if the clicked image is the correct answer:
Dim theState as SlideState
Set theState = RecognitionSlide.States("Default")
Dim next_mX as Long, next_mY as Long
Dim strHit As String
Dim theMouseResponseData As MouseResponseData
If RecognitionSlide.InputMasks.Responses.Count > 0 Then
Set theMouseResponseData = CMouseResponseData(RecognitionSlide.InputMasks.Responses(1))
strHit = theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY)
If strHit = ("Image1") or strHit = ("Image2") or strHit = ("Image3")or strHit = ("Image4") Then
c.SetAttrib "response", strHit
Else
Goto restart
End If
If strHit = c.GetAttrib("CorrectEmotion") Then
RecognitionSlide.ACC = 1
Else
RecognitionSlide.ACC = 0
End If
My Problem is, that everytime you click somewhere else than the 4 target Images, the Sound file and RT-measures start again.
So basically i need something else than the code
Else
Goto restart
which doesn't cause the slide to be reset.
Is there any way to make everything but the 4 target Images unclickable?
I hope you understand what i mean.
Any help would be appreciated
Best regards
Hans