rather than<br><br>...<br>If SSDArrowLeft.RT > 0 Then<br>stopduration = 0<br>c.SetAttrib "stopduration", stopduration<br>...<br><br>try instead<br><br>...<br>If SSDArrowLeft.RT > 0 Then<br>Goto Label1<br>...<br>
<br>and put a Label object (Label1) on your procedure timeline immediately following the stop signal slide.  this will cause the script to skip your stop signal slide if an appropriate response is made.<br><br>you're seeing the stop signal flicker on the screen, despite a duration of 0 milliseconds, because the code is still requesting that the stop signal be drawn to the screen.  the fact that the duration is 0 just means that it won't remain on screen following the first screen refresh after it's first drawn.<br>
<br>hope that helps.<br><br>ben<br><br><div class="gmail_quote">On Fri, Dec 5, 2008 at 3:51 PM, Zach <span dir="ltr"><<a href="mailto:zachary.d.cohen@gmail.com">zachary.d.cohen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello everyone,<br>
       I have a stop signal delay task in which I used the following<br>
line of code to set the duration of my slides:<br>
<br>
dim duration as long<br>
dim stopduration as long<br>
<br>
If SSDArrowLeft.RT > 0 Then<br>
stopduration = 0<br>
c.SetAttrib "stopduration", stopduration<br>
duration = 1000 - SSDArrowLeft.RT<br>
c.SetAttrib "duration", duration<br>
<br>
Else<br>
dim SSDtimeleft as long<br>
SSDtimeleft = CLng(c.GetAttrib("SSDtimeleft"))<br>
stopduration = 1000 - SSDtimeleft<br>
c.SetAttrib "stopduration", stopduration<br>
<br>
End If<br>
<br>
This code follows a slide called SSDArrowLeft which has a duration of<br>
either 100, 150, 200, or 250ms, and terminates upon response. If the<br>
user doesn't respond, a stopsignal slide is presented. If they manage<br>
to respond during this time, the goal is to skip this stopsignal slide<br>
by setting its duration to 0. I believe this should work and has<br>
worked in the past, but for some reason when this program is run and a<br>
response is made during the SSDArrowLeft slide I see a flicker of the<br>
stopsignal slide. Could this be the computer or program is simply slow<br>
and presents the stopsignal slide for a few miliseconds while it<br>
proccesses, or is there something wrong with my code structure? I fear<br>
the latter, but hope more experienced users like yourselves might have<br>
run into this problem before and might have a solution.<br>
<br>
I greatly appreciate your time and advice, and have relied heavily on<br>
this forum and past postings to educate myself about eprime.<br>
<br>
Sincere thanks,<br>
-Zachary Cohen<br>
<br>
</blockquote></div><br>
<br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en<br>
-~----------~----~----~----~------~----~------~--~---<br>
<br>