<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 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 onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpfcgroot.nl%2Fe-prime%2F83-example-scripts%2F88-image-click-example.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGLxeHwqlQ2UJqDwgZbjUrqRnY20w';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpfcgroot.nl%2Fe-prime%2F83-example-scripts%2F88-image-click-example.html\46sa\75D\46sntz\0751\46usg\75AFQjCNGLxeHwqlQ2UJqDwgZbjUrqRnY20w';return true;" href="http://pfcgroot.nl/e-prime/83-example-scripts/88-image-click-example.html" target="_blank">http://pfcgroot.nl/e-<wbr>prime/83-example-scripts/88-<wbr>image-click-example.html</a></div>
<div><br></div><div>Paul</div></div><div><br><br><div class="gmail_quote">On 24 January 2014 18:07,  <span dir="ltr"><<a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="-wQfmau0w_QJ">haslinge...@gmail.com</a>></span> wrote:<br>
<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 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("<wbr>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.<wbr>Responses.Count > 0 Then</font></div><div><br><font color="#a64d79">          Set theMouseResponseData = CMouseResponseData(<wbr>RecognitionSlide.InputMasks.<wbr>Responses(1))<br>
    <br>                <br>                strHit = theState.HitTest(<wbr>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><span><font color="#888888">

<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 onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="-wQfmau0w_QJ">e-prime+u...@<wbr>googlegroups.com</a>.<br>
To post to this group, send email to <a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="-wQfmau0w_QJ">e-p...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a onmousedown="this.href='https://groups.google.com/d/msgid/e-prime/a7f4d4a6-855b-4d6c-9944-08d07ece19bc%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/e-prime/a7f4d4a6-855b-4d6c-9944-08d07ece19bc%40googlegroups.com';return true;" href="https://groups.google.com/d/msgid/e-prime/a7f4d4a6-855b-4d6c-9944-08d07ece19bc%40googlegroups.com" target="_blank">https://groups.google.com/d/<wbr>msgid/e-prime/a7f4d4a6-855b-<wbr>4d6c-9944-08d07ece19bc%<wbr>40googlegroups.com</a>.<br>

For more options, visit <a onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;" href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<wbr>groups/opt_out</a>.<br>
</font></span></blockquote></div><br></div>
</blockquote></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/c74d6a70-2f5b-4b95-a869-9933095cd165%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/c74d6a70-2f5b-4b95-a869-9933095cd165%40googlegroups.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 />