<div dir="ltr">Hi Hans,<div><br></div><div>Perhaps I'm mixing things up, but if I understand your design correctly, it should be possible to move the sound from the Stimulus slide to a separate SoundOut object just before the Stimulus Slide, without disturbing anything. (Ignoring the restart label for now.) If the duration of the SoundOut object is set to zero, the onset of the sound should (almost) coincide with the onset of the image. (If the onset times of the stimuli are critical, you will have to measure sound and display onsets using suitable instruments and fine-tune your script.) I assumed your restart-label is placed immediately before the stimulus Slide, so to prevent the sound from restarting, you should now place it between the SoundOut and Slide objects. (I.e., the order will be: SoundOut, Restart Label, RecognitionSlide). If you do it like this, the sound should not start early.</div>
<div><br></div><div>But the again: I would stay away from goto-label constructs and use a separate List object...  If you use a list for repeating clicks, you can even keep the sound as sub-object of the slide.</div><div>
<br></div><div>Paul</div><div><br></div><div>PS. I just tested this, but EPrime ran into problems when the sound file was always the same and defined as static text property (using a filename). When the sound file is defined as attribute, EPrime will re-initialize the sound object every iteration, and the problem disappeared.</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 January 2014 11:46,  <span dir="ltr"><<a href="mailto:haslinger.hans11@gmail.com" target="_blank">haslinger.hans11@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hallo Paul</div><div><br></div><div>Thank you for your help.</div><div>Unfortunately, the Sound file is played before the slide is opened, if I insert the SoundOut object before the restart Label in the procedure.</div>
<div><br></div><div><br></div><div>Isn't there another way to express <font color="#a64d79">         Else              , <font color="#000000">so that really nothing happens, if a click occurs in the invalid area of the slide?</font><br>
                                                                Goto restart</font></div><div><font color="#a64d79"><br></font></div><div><font color="#a64d79"><br></font></div><div><br></div><div><br><br>Am Freitag, 24. Januar 2014 19:11:59 UTC+1 schrieb Paul Groot:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div class="im"><div dir="ltr">Hans,<div><br></div><div>I think that the solution for the restarted sound is to insert the sound as separate SoundOut object before the restart label. The duration could be set to zero, and stopafter to no. The The inline script should be OK, although I personally prefer to use a separate list object instead of a goto-label to construct a repeating loop until a valid item is clicked. By using a sub-list you will automatically get all individual clicks in the edat-file. You also might need a small piece of script to stop the sound.</div>

<div><br></div><div>The problem with the overall RT should be handled by additional inline script. Just subtract the RTTime of the valid response from the OnsetTime of the (first) stimulus onset. You can look at the following example for this: <a href="http://pfcgroot.nl/e-prime/83-example-scripts/88-image-click-example.html" target="_blank">http://pfcgroot.nl/e-<u></u>prime/83-example-scripts/88-<u></u>image-click-example.html</a></div>

<div><br></div><div>Paul</div></div></div><div><br><br><div class="gmail_quote"><div><div class="h5">On 24 January 2014 18:07,  <span dir="ltr"><<a>haslinge...@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div class="h5"><div dir="ltr"><div>Hallo everybody</div>
<div><br></div><div>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.</div>
<div>Participants should choose 1of 4 possible answers (4 Images) by clicking.</div><div><br></div><div>So i have got a slide with 5 slide-images (1 stimulus and 4 target Images) and 1 slide-sound-out sub-object.</div><div>

<br></div><div>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:</div><div><br></div><div><br></div><div><br><font color="#a64d79"> Dim theState as SlideState<br>

 Set theState = RecognitionSlide.States("<u></u>Default")</font></div><div><font color="#a64d79"> Dim next_mX as Long, next_mY as Long<br>  Dim strHit As String<br>  Dim theMouseResponseData As MouseResponseData</font></div>

<div><font color="#a64d79"><br></font></div><div><font color="#a64d79"> <br>        If RecognitionSlide.InputMasks.<u></u>Responses.Count > 0 Then</font></div><div><br><font color="#a64d79">          Set theMouseResponseData = CMouseResponseData(<u></u>RecognitionSlide.InputMasks.<u></u>Responses(1))<br>

    <br>                <br>                strHit = theState.HitTest(<u></u>theMouseResponseData.CursorX, theMouseResponseData.CursorY)</font></div><div><br><font color="#a64d79">             <br>                      If strHit = ("Image1") or strHit = ("Image2") or strHit = ("Image3")or strHit = ("Image4")  Then<br>

                     c.SetAttrib "response", strHit</font></div><div><font color="#a64d79">                </font></div><div><font color="#a64d79">                     Else<br>                     Goto restart</font></div>

<div><font color="#a64d79">                        End If <br></font></div><div><font color="#a64d79"><br></font></div><div><br><font color="#a64d79">If strHit = c.GetAttrib("CorrectEmotion") Then<br>RecognitionSlide.ACC = 1<br>

Else<br>RecognitionSlide.ACC = 0 <br>End If</font></div><div><br></div><div><br></div><div><font color="#000000">My</font> Problem is, that everytime you click somewhere else than the 4 target Images, the Sound file and RT-measures start again.</div>

<div><br></div><div>So basically i need something else than the code          </div><div>                       <font color="#a64d79">Else<br>                      Goto restart</font></div><div><font color="#000000">which doesn't cause the slide to be reset.</font></div>

<div><font color="#000000"><br></font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Is there any way to make everything but the 4 target Images unclickable?</font></div><div><font color="#000000">I hope you understand what i mean.</font></div>

<div><font color="#000000"><br></font></div><div><font color="#000000">Any help would be appreciated</font></div><div><font color="#000000">Best regards</font></div><div><font color="#000000">Hans</font></div></div></div>
</div><span><font color="#888888"><div><div class="h5">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br></div></div>
To unsubscribe from this group and stop receiving emails from it, send an email to <a>e-prime+u...@<u></u>googlegroups.com</a>.<br>
To post to this group, send email to <a>e-p...@googlegroups.com</a>.<div class="im"><br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/a7f4d4a6-855b-4d6c-9944-08d07ece19bc%40googlegroups.com" target="_blank">https://groups.google.com/d/<u></u>msgid/e-prime/a7f4d4a6-855b-<u></u>4d6c-9944-08d07ece19bc%<u></u>40googlegroups.com</a>.<br>


For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<u></u>groups/opt_out</a>.<br>
</div></font></span></blockquote></div><br></div>
</blockquote></div><div class="im">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br></div>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/c74d6a70-2f5b-4b95-a869-9933095cd165%40googlegroups.com" target="_blank">https://groups.google.com/d/msgid/e-prime/c74d6a70-2f5b-4b95-a869-9933095cd165%40googlegroups.com</a>.<div class="HOEnZb">
<div class="h5"><br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAKAdR-uvhsUb8a2TGUo-Nnexk0bixv%2BVKc-m3Fi1g9N0m%2Bkr1w%40mail.gmail.com">https://groups.google.com/d/msgid/e-prime/CAKAdR-uvhsUb8a2TGUo-Nnexk0bixv%2BVKc-m3Fi1g9N0m%2Bkr1w%40mail.gmail.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />